sin cos problem. How to solve it

1 view (last 30 days)
tabw
tabw on 29 Aug 2014
Edited: tabw on 29 Aug 2014
why sind(45)=-0.707
it should be 0.707
and sind(18)=-0.9511
it should be 0.309
what's wrong with it

Accepted Answer

Iain
Iain on 29 Aug 2014
Theres 2 things that could be wrong.
1. User error - You're actually putting in something like: (-90 + 18) and (-90 + 45), instead of 18 and 45. - This is what I expect
2. A bad prank - Someone has written a function called sind that doesn't do what you think it should, and you're actually using that function.
  4 Comments
tabw
tabw on 29 Aug 2014
Edited: tabw on 29 Aug 2014
type sind
'sind' is a built-in function.
so strange..
After I restart matlab, It functions in a normal way. Thanks all of you

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!