简体   繁体   English

CLDC 1.0 / MIDP 2.0应用程序中的三角函数

[英]Trigonometry in CLDC 1.0 / MIDP 2.0 application

How can I use trigonometry in CLDC 1.0 / MIDP 2.0 application? 如何在CLDC 1.0 / MIDP 2.0应用程序中使用三角函数? I need "sin cos tan asin acos atan atan2" functions from standart Math library. 我需要标准数学库中的“ sin cos tan asin acos atan atan2”函数。

Thanks 谢谢

update to prior answer 更新到先前的答案

gnat knows gna知道

Above link to Sun Forums became dead after migration to Oracle. 迁移到Oracle后,以上与Sun Forums的链接已失效

If memory serves, back then I suggested to consider MicroFloat library . 如果有内存,那我建议考虑使用MicroFloat库

There is also a chance that mentioned Sun forums thread was migrated to this one: Sin & Cos with CLDC . 也有可能将提到的Sun论坛帖子迁移到了这个论坛Sin&Cos with CLDC Since message formatting was broken in migration and since no one knows if migrated thread will stay where it is now, here's the "snapshot" of what is there: 由于消息格式在迁移中被破坏,并且由于没人知道迁移后的线程是否会停留在现在的位置,因此这里是其中的“快照”:

  • CLDC 1.0 (JSR 30) doesn't have float / double and trigonometric functions CLDC 1.0(JSR 30)没有浮点/双精度和三角函数
    For devices limited to CLDC 1.0, search Google for 'CLDC Math library' - there's plenty info 对于仅限CLDC 1.0的设备,请在Google上搜索“ CLDC数学库” -信息很多

  • CLDC 1.1 (JSR 139) has some trigonometric and double / float functions in Math package CLDC 1.1(JSR 139)在Math软件包中具有一些三角函数和double / float函数
    of functions mentioned in question, sin cos tan are there, asin acos atan atan2 aren't 在提到的功能中,存在sin cos tan ,因为incos acos atan atan2不存在

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM