Math

Module with math function operation on REAL type.

Const

e* = 2.7182818284;
pi* = 3.1415926535;

Procedures

sqrt

Computes the square root of the REAL x

PROCEDURE sqrt*(x: REAL): REAL;

exp

Computes e raised to the power of x

PROCEDURE exp*(x: REAL): REAL;

ln

Computes natural (e) logarithm of x

PROCEDURE ln*(x: REAL): REAL;

sin

Computes the sine of the angle REAL x in radians

PROCEDURE sin*(x: REAL): REAL;

cos

Computes the cosine of the angle REAL x in radians

PROCEDURE cos*(x: REAL): REAL;

arctan

Computes the arc tangent of the value REAL x

PROCEDURE arctan*(x: REAL): REAL;

real

Return the INTEGER x converted to REAL

PROCEDURE real*(x: INTEGER): REAL;

entier

Computes the largest integer value not greater than x

PROCEDURE entier*(x: REAL): INTEGER;