Trigonometry in CLDC 1.0 / MIDP 2.0 application

我是研究僧i 提交于 2019-12-24 02:07:32

问题


How can I use trigonometry in CLDC 1.0 / MIDP 2.0 application? I need "sin cos tan asin acos atan atan2" functions from standart Math library.

Thanks


回答1:


gnat knows




回答2:


update to prior answer

gnat knows

Above link to Sun Forums became dead after migration to Oracle.

If memory serves, back then I suggested to consider MicroFloat library.

There is also a chance that mentioned Sun forums thread was migrated to this one: 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
    For devices limited to CLDC 1.0, search Google for 'CLDC Math library' - there's plenty info

  • CLDC 1.1 (JSR 139) has some trigonometric and double / float functions in Math package
    of functions mentioned in question, sin cos tan are there, asin acos atan atan2 aren't



来源:https://stackoverflow.com/questions/1793534/trigonometry-in-cldc-1-0-midp-2-0-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!