Tables instead of radians?

Hey!
I'm working on a navigation-algorithm for my robot, including law of sines and law of cosines.
However, I do not get the right results from my formulas as the cos,sin and tan functions from Arduino only return degrees in radians.
That's why I'm asking if there's any functions that can give me return-values from the cos,sin and tan tables instead of radians?

Thanks in advance,

// Andreas

Why not just convert the returned value into degrees?
Two Pi radians is 360 degrees.

what are you looking for ...

like radians to degrees is as simple as d = r*(180/pi)

Grumpy_Mike:
Why not just convert the returned value into degrees?
Two Pi radians is 360 degrees.

Osgeld:
what are you looking for ...

like radians to degrees is as simple as d = r*(180/pi)

Hey!
I do not want a returned value into degrees, as my input value already is in degrees.
Instead, I want values from the cosine table like this https://www.grc.nasa.gov/WWW/k-12/airplane/tablcos.html.

Nevermind, I solved it :slight_smile:
At first, I did for some reason thought that the radian was the output value, when it in fact was the input value.
So it was just about to create a function that converts degrees to radians by using the formula you gave me.

Thanks for your help!