To start I'm not that well versed in javascript and I'm trying to convert this complex excel formula to javascript without any luck.
=DEGREES(ASIN(SIN(RADIANS(59.036))*SIN(RADIANS(150))))/2
Here's what I have so far
var x = DEGREES(Math.asin(Math.sin(RADIANS(59.036))*Math.sin(RADIANS(150))))/2
Obviously, DEGREES
and RADIANS
are wrong and I can't figure what the javascript equivalent would be.
(BTW the correct answer is 5.831)