Atan - method of the Pm object
Description:
Returns the arctangent (invertetd tangent) of a number.
Syntax:
Double Atan(Double nValue)
Parameters:
nValue | (Double) Any valid numeric expression. |
---|
Return value:
Real number in the range from -Pi/2 to +Pi/2.
Example1:
JavaScriptVBScriptSelect and copy to clipboard
var pi = 4 * Pm.Atan(1);
// Computing the value of Pi
Dim pi
pi = 4 * Pm.Atan(1)
' Computing the value of Pi
Example2:
Computing of derived arcus functions
JavaScriptVBScriptSelect and copy to clipboard
var Arcsin = Pm.Atan(x / Pm.Sqrt(-x * x + 1));
var Arccos = Pm.Atan(-x / Pm.Sqrt(-x * x + 1)) + 2 * Pm.Atan(1);
var Arcsec = Pm.Atan(x / Pm.Sqrt(x * x - 1)) + Pm.Sign(x - 1) * 2 * Pm.Atan(1);
var Arccosec = Pm.Atan(x / Pm.Sqrt(x * x - 1)) + (Pm.Sign(x) - 1) * 2 * Pm.Atan(1);
var Arccotan = Pm.Atan(x) + 2 * Pm.Atan(1);
Dim Arcsin, Arccos, Arcsec, Arccosec, Arccotan
Arcsin = Pm.Atan(x / Pm.Sqrt(-x * x + 1))
Arccos = Pm.Atan(-x / Pm.Sqrt(-x * x + 1)) + 2 * Pm.Atan(1)
Arcsec = Pm.Atan(x / Pm.Sqrt(x * x - 1)) + Pm.Sign(x - 1) * 2 * Pm.Atan(1)
Arccosec = Pm.Atan(x / Pm.Sqrt(x * x - 1)) + (Pm.Sign(x) - 1) * 2 * Pm.Atan(1)
Arccotan = Pm.Atan(x) + 2 * Pm.Atan(1)