sin(x) = 0.5
x = sin^-1(0.5)
x = 30°
This doesn't work:
Code: Select all
MsgBox, % Sin**-1(0.5)
I don't know much about math, I read the general math and trigonometry section of the AHK reference to no avail.
Thanks!!
Code: Select all
MsgBox, % Sin**-1(0.5)
Code: Select all
pi := 4*ATan(1)
MsgBox, % ASin(0.5) * 180 / pi ; returns 30.000000
https://www.autohotkey.com/docs/commands/Math.htm#Trigonometry wrote:Note: To convert a radians value to degrees, multiply it by 180/pi (approximately 57.29578). To convert a degrees value to radians, multiply it by pi/180 (approximately 0.01745329252). The value of pi (approximately 3.141592653589793) is 4 times the arctangent of 1.