C# Math Atan
Description
Math Atan
returns the angle whose tangent is the specified
number.
Syntax
Math.Atan
has the following syntax.
public static double Atan(
double d
)
Parameters
Math.Atan
has the following parameters.
d
- A number representing a tangent.
Returns
Math.Atan
method returns An angle, measured in radians.
Example
The following code shows how to use Math.Atan method.
using System;//ww w. j a v a 2 s. co m
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Math.Atan(0.5));
}
}
The code above generates the following result.