Dear administrators and members,

A greeting of peace.

I hope everyone is in good health upon reading this thread.

I am currently working on a simple program that uses trigonometric laws likesine laws.I first try to write this simple codes first:

double angle = 60; System.out.println( Math.sin(Math.toDegrees(angle) );

Then the output is: 0.7475(something)

I wonder why the output is 0.7475(something)? BUT, when I tried pressingsin 60on my scientific calculator (in degrees mode as usual) the answer is 0.8660(something).

Then later, I tried to use toRadians() method in Math class:

double angle = 60; System.out.println( Math.sin(Math.toRadians(angle) );

Then that is the time I got the 0.8660 (something) answer.

I am just a little confused. My scientific calculator is in degrees mode, that is why I am expecting the same result if I will use the toDegrees() method, but why it did not?

Please enlighten me. Did I miss something?

Respectfully Yours,

MarkSquall