Atan - method of object Pm
Description:
Returns the arctangent (invertetd tangent) of a number.
Syntax:
Atan(nValue As Double) As Double
Parameters:
nValue | (Double) Any valid numeric expression. |
---|
Return Values:
Real number in the range from -Pi/2 to +Pi/2.
Example1:
JavaScriptVBScriptSelect and copy to clipboard
var pi = 4 * Pm.Atan(1); //calculate the value of Pi
Dim pi
pi = 4 * Pm.Atan(1) 'calculate the value of Pi
Example2:
Computing of derived arcus functions
JavaScriptVBScriptSelect and copy to clipboard
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);
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)