Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Arccos method in C#?

Tags:

c#

Which is the arccos method in c#? I found one acos but i am not sure its the correct one. http://msdn.microsoft.com/en-us/library/system.math.acos.aspx

like image 622
redfrogsbinary Avatar asked Aug 09 '11 21:08

redfrogsbinary


2 Answers

Math.Acos() is the cos-1 function in .NET, so you have it right.

like image 147
KeithS Avatar answered Sep 28 '22 00:09

KeithS


Yes, that is the one.

Arccosine:

Arccosine is the inverse function of cosine. It is also written as arccos or cos- 1. If y = cos x, then x = arccos y.

The definition on the page that you linked to:

Returns the angle whose cosine is the specified number.

like image 36
Guffa Avatar answered Sep 28 '22 02:09

Guffa