Go Down

Topic: Problem with arduino maths (Read 1 time) previous topic - next topic

James C4S

The sin function takes degrees.

You might be interested in the first sentence of this page:
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com


Ok, i will try using radians.


I want to find sin(140) and the calculator returns 0.6, how do i do that in arduino.  :~


When i try using radians(140); the answerr returns as 0.


I want the degrees converted to radians and thats what sin() does but the answer is wrong, why. Need help with this.  :~

Go Up