HP Pascal/iX Reference Manual (31502-90022)

9- 26
ln
Usage
ln
(x)
Argument
x
Any positive numeric expression.
Description
The ln function returns the natural logarithm (base e) of the argument.
This function returns a real for sub-integer, integer, or real arguments,
and longreal for longreal or super-integer arguments. It is an error if
x
is 0 or less than 0. The value used for Naperian e is implementation
dependent.
Example
Input Result
ln(43) 3.761200E+00
ln(2.121) 7.518877E-01
ln(0) { error }
sin
Usage
sin
(x)
Argument
x
A numeric expression.
Description
The sin function returns the sine of the angle interpreted in radians
represented by its argument. This function returns a real for
sub-integer, integer, or real arguments, and longreal for longreal or
super-integer arguments. Note that the argument can be any numeric
value.
Example
Input Result
sin(rad)
sin(0.024) 2.399769E-02
sin(90) 8.93997E-01
sqr
Usage
sqr
(x)
Argument
x
Any numeric expression.
Description
The sqr function computes the square of its argument that must be an
expression with a numeric type. The type of the result is the same as
the base type of the numeric expression.