HP Pascal/iX Reference Manual (31502-90022)

9- 25
x
A numeric expression.
Description
The arctan function returns the principal value of the angle that has the
tangent equal to the argument. The result is in radians within the range
-pi/2..pi/2. This function returns a real for sub-integer, integer, or
real arguments, and longreal for longreal or super-integer arguments.
The value used for pi is implementation dependent.
Example
Input Result
arctan(num_exp)
arctan(2) 1.107149E+00
arctan(-4.002) -1.32594E+00
cos
Usage
cos
(x)
Argument
x
A numeric expression.
Description
The cos function returns the cosine of the angle represented by its
argument that is interpreted in radians. This function returns a real
for sub-integer, integer, or real arguments, and longreal for longreal or
super-integer arguments. The range of the returned value is -1.0 through
+1.0.
Example
Input Result
cos(x_rad)
cos(1.62) -4.91838E-02
exp
Usage
exp
(x)
Argument
x
A numeric expression.
Description
The exp real function raises e to the power of the argument. This
function returns a real for sub-integer, integer, or real arguments, and
longreal for longreal or super-integer arguments. The value used for
Naperian e is implementation dependent.
Example
Input Result
exp(3) 2.008554E+01
exp(8.8E-3) 1.008839E+00
exp(8.8L-3) 1.00883883382898L+00