For example,
- sin 33.35 = 0.5523 in degree
- sin 33.35 = 0.9347 in radian
As Xcode gives answers by default in radian.
So is there any way to get answer in degree ???
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you multiply radians by a constant,
180/pi, to get degrees. That’s because there are2 * piradians in a complete circle of 360 degrees (so half a circle ispiradians and 180 degrees).Just keep in mind that’s a conversion you have to apply to the input of the sine function (the angle), not the output (which is a length).
The
piconstant can be used by includingmath.hand using theM_PIsymbol.