MATLAB: My Matlab gives me a wrong answers what shall I do to fix it
My Matlab gives me a wrong answers what shall I do to fix it? there is an example in the picture I have send I write sin (90) it gives me 0.89 and sin (30) it gives me -0.9880
Best Answer
You did not attach anything, but in any case, sin() requires that its inputs be in radians. If you want sin of degrees use sind()
Like Azzi said, pi contains infinite decimal numbers, To avoid this ambiguity i recommend you to use the degree functions instead of radianscosd andsind,
Best Answer