arc sine not defined in codename one

11 views
Skip to first unread message

poll...@outlook.com

unread,
Nov 15, 2017, 10:51:44 AM11/15/17
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator

I get the following error trying to compile:

final double delta; 
double dd = Math.sin(lambda)
                * Math.sin(Math.toRadians(23.439));  
delta = Math.asin(dd);

error: cannot find symbol delta = Math.asin(dd); symbol:   method asin(double)


Steve Hannah

unread,
Nov 15, 2017, 11:00:11 AM11/15/17
to codenameone...@googlegroups.com
Use the MathUtil class instead.  It has asin.

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/d6fa6ac3-37da-4696-a008-dca05be4b769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages