Hi, I was testing math.asin and math.sin. I’m a little confused though.
print(math.sin(2)) -- 0.90929742682568
print(math.asin(0.90929742682568)) -- This should equal 2 but instead it gave me 1.1415926535898
According to what I’ve read math.asin should give me the inverse of math.sin. In this case it didn’t.
Can anyone tell me why math.asin gave me 1.1415926535898?
Any article or pieces of code would be greatly appreciated!
It should print 50 just like we inputed. basiclly i convert the degrees into radians(what roblox uses). then i do the stuff then return back the result of it.