According to the doc:
http://code.google.com/android/reference/java/lang/Math.html#sin(double)

you need to provide the angle in radians, where 2*Pi corresponds to
360 degrees (i.e. Pi/2 is 90 deg).

http://en.wikipedia.org/wiki/Radian

In Java, you can use the constant Math.PI for Pi.

Christoph


On Sun, Feb 1, 2009 at 6:20 PM, ph...@grantmidwinter.com
<ph...@grantmidwinter.com> wrote:
>
>
> input:
> Log.v("sintest",String.valueOf(Math.sin(90)));
>
> output:
> V/sintest (16869): 0.8939966636005579
>
> huh? I realise I'm probably about to invite explanations about
> floating points and subsequent brain explosions, but could anyone tell
> me what's going on here?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to