Why there is a difference between trignometry and matlab answers

6 views (last 30 days)
we know that
radian ×pi/180=degree but when i calculated sin(90) that is 0.8940 and multiplied it like sin(0.8940×pi/180) give me 0.0156 not 90
  1 Comment
Stephen23
Stephen23 on 27 Jan 2019
Edited: Stephen23 on 27 Jan 2019
"but when i calculated sin(90) that is 0.8940"
The function sin's input is in radians. What possible significance do you see in calculating sine of 90 radians ? Do you perhaps mean to calculate sine of 90 degrees ? If so, the conversion from degrees to radians is simple:
sin(valueInDegrees*pi/180)
or simpler:
sind(valueInDegrees)
"...sin(0.8940×pi/180) give me 0.0156 not 90"
Regardless of its input units, what sine function could possibly have 90 as an output value?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 25 Jan 2019
sin(90*pi/180)
or
sind(90)
Your current calculation is
sin(sin(90) * pi/180)
where the sin(90) is 90 radians.
  4 Comments
NEELPRAKASH SINHA
NEELPRAKASH SINHA on 27 Jan 2019
ty but even with this my doubt is not cleared because it will also not lead me to the 90 degree
Walter Roberson
Walter Roberson on 27 Jan 2019
If the task is to startvwith 0.8940 and get out 90 then you are not going to be able to do that in any simple way. sin(90) means to take sine of 90 radians. sind(90) or sin(90*pi/180) would take sine of 90 degrees giving you 1.0 . asind(1.0) would give you 90.

Sign in to comment.

More Answers (0)

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!