The javascript sin(angle) gives the correct result for angle in radians.
For 117 degrees, multiply by (PI/180) yields 2.042... radians. Javascript sin(2.042...) = .891..., which agrees with your calculator set to DEG.
James is correct, in that javascript sin(117) treats 117 as radians, NOT degrees.
Max is using square brackets [ ] for the trig. The math in Max's node is done using Javascript Math functions. Javascript version ES5, NOT ES6.
(I think sin() is the same as sin[] in the node (???))
- Brian
|