I am using DDMathParser in my application but I do not understand how to use the function rtod(). I have tried multiple equations but it does not seem to be working.
Some equations do work ex. rtod(acos(0)). But others are not rtod(sin(50)).
Here is an example of the test I did:
> rtod(acos(0))
rtod(acos(0)) = 90
> rtod(sin(50))
rtod(sin(50)) = -15.03297176759753
>
Is it the fact that I am misusing it? I’m not quite sure. But i’m pretty sure that it works someway, for I downloaded an application with DDMathParser built in and there’s works just fine.
Hope someone can help!
sin(50)is not the same assin(50 degrees)because it’s decimal (values go up to tenths).You’re feeding in decimals which the trigonometric functions see as radians.
Try it like that.