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:
http://arduino.cc/en/Reference/Sin
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

amruth11

Ok, i will try using radians.

amruth11

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

amruth11

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

amruth11

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

Go Up