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 of 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.

Example1:
Dim pi
pi = 4 * Pm.Atan(1) 'calculate the value of Pi
Example2:
Computing of derived arcus functions
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)
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