Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Atan - method of object Pm

Description:
Returns the arctangent (invertetd tangent) of a number.
Syntax:
Atan(nValue As Double) As Double
Calling:
n = Pm.Atan(nValue)
Parameters:
nValue(Double) Any valid numeric expression.
Return Values:
Real number in the range from -Pi/2 to +Pi/2.
Note:
The method can also be called in the graphic item events for Web panels.

The method is functional also in Macro expression $.expr and in the onDraw event of the PmiCanvas graphic item.

Example1:
JavaScriptVBScriptSelect and copy to clipboard

var 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);
PROMOTIC 8.3.26 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.Tavičská 845/21 703 00 Ostrava-Vítkovice