sin cos problem. How to solve it

조회 수: 2 (최근 30일)
tabw
tabw 2014년 8월 29일
편집: tabw 2014년 8월 29일
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

채택된 답변

Iain
Iain 2014년 8월 29일
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
Iain
Iain 2014년 8월 29일
If the result of:
which sind
says built-in, then you're using the built in version. If it says ....\sind.m, then the file can have been altered (which would be a bad prank)
tabw
tabw 2014년 8월 29일
편집: tabw 2014년 8월 29일
type sind
'sind' is a built-in function.
so strange..
After I restart matlab, It functions in a normal way. Thanks all of you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by