+ 8

sin(1) = 90

If I want to use in the Math.sin(1) = 90 Not 90 = 1 And in the cos or tan

30th Jan 2019, 10:32 AM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
3 Respostas
+ 15
The trigonometric functions return the result in radians. If you want degrees, you have to convert it like this: window.alert(Math.round(Math.asin(1)*57.2957795))
30th Jan 2019, 10:50 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 9
You need something like Math.asin(1.0)*(180.0/Math.PI)
30th Jan 2019, 11:44 AM
Sonic
Sonic - avatar
+ 5
Are you trying to convert radians to degrees?
30th Jan 2019, 10:50 AM
D_Stark
D_Stark - avatar