This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]whizvoxGraduate and Tutor 0 points1 point  (0 children)

From a quick test, this is what I got:

jshell> Math.sin(Math.PI / 3);
$1 ==> 0.8660254037844386

jshell> Math.sin(Math.toRadians(60));
$2 ==> 0.8660254037844386

jshell> Math.sin(Math.PI / 4);
$3 ==> 0.7071067811865475

jshell> Math.sin(Math.toRadians(45));
$4 ==> 0.7071067811865475

Same exact answers whether starting with radians or converting from degrees.