# [C#]Math.Sin() is wrong?

This topic is 3665 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Math.Sin(30) suppose to give 0.5, but when I did it, it gave me a negative number. What's wrong with it? Math.Sinh() is the same as SHIFT SinX in a caculator?

##### Share on other sites
How can I change it to degrees?

##### Share on other sites
Since there are Pi radians per 180 degrees, you need to multiply the argument of sin by Math.PI/180.

e.g. Math.Sin(30 * Math.PI/180) is sin of 30 degrees.

edit: I just saw your question about Math.Sinh: sinh is hyperbolic sin. Just like sin gives the y-component of the angle parameterization of the curve x^2+y^2=1, sinh gives the y-component corresponding to an angle-like parameterization of the hyperbolic curve x^2-y^2=1

You can find more on wikipedia if you're interested: Hyperbolic Sin

Thanks.

##### Share on other sites
Wow you're quick. You replied while I was editing. See the bottom of my other post for info on Math.Sinh.

##### Share on other sites
Oh, wow, haven't got there in math yet.

Is there a function to get X from SinX? [Like doing SHIFT SinX in a calculator(not the computer one)]

##### Share on other sites
Quote:
 Original post by PortisheadOh, wow, haven't got there in math yet.Is there a function to get X from SinX? [Like doing SHIFT SinX in a calculator(not the computer one)]

Math.Asin, if I understood your question correctly.

You have b = Sin(X), and you want to know what X is, right?
Then X = Math.Asin(b), it's the inverse sine function (sin-1)

1. 1
2. 2
3. 3
Rutin
15
4. 4
5. 5
khawk
11

• 9
• 9
• 11
• 11
• 23
• ### Forum Statistics

• Total Topics
633677
• Total Posts
3013281
×