Promotic

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.
Note:
This method is functional also in Macro expression $.expr and in the onDraw event of the PmgCanvas object.
This method is also functional in Web panels.
Example1:
JavaScriptVBScriptSelect and copy to clipboard

var 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);

History:
Pm8.02.01: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Atan
 
 
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.