C# Math Acos
Description
Math Acos
returns the angle whose cosine is the specified
number.
Syntax
Math.Acos
has the following syntax.
public static double Acos(
double d
)
Parameters
Math.Acos
has the following parameters.
d
- A number representing a cosine, where d must be greater than or equal to -1, but less than or equal to 1.
Returns
Math.Acos
method returns An angle measured in radians.
Example
The following code shows how to use Math.Acos method.
using System;/*w w w .jav a 2 s .c om*/
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Math.Acos(0.5));
}
}
The code above generates the following result.