Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trignometric functions giving wrong value.

Former Member
0 Likes
434

Hi everybody,

I am using a Sin function in my program. It is not giving the exact result.

For example,

Sin 60 is 0.866025403. But it is giving me -0,304811.

For Sin 90 it is giving me 0,893997 which is actually 1.

Similarly 1,619775 for Tan 45.

What could be the reason?

Please help me in solving the issue.

Thanks.

Edited by: my name is already in use on Feb 22, 2010 1:57 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
402

Hello

Sin and other trignometric functions works with radians, not with degrees.

Convert degrees to radians and try again.

1 REPLY 1
Read only

Former Member
0 Likes
403

Hello

Sin and other trignometric functions works with radians, not with degrees.

Convert degrees to radians and try again.