Kama Posted December 28, 2019 Share Posted December 28, 2019 trying to solve equation but cant get right result is there any way to get angle if I already know sin(alpha)? in highscool we used tables to get that, but how to do that in code? @a = degrees(asin(sin(20))); shouldnt I get 20 degrees back? why @a = 65,91 ? Thanks Quote Link to comment Share on other sites More sharing options...
Noobini Posted December 28, 2019 Share Posted December 28, 2019 coz your sin(x) is already wrong...dead in the water.....sin expects radians not Degrees this will get you back your 20: @a = degrees(asin(sin(radians(20)))); Quote Link to comment Share on other sites More sharing options...
Kama Posted December 29, 2019 Author Share Posted December 29, 2019 Thank you very much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.