.. index:: single: Math .. _Math: **** Math **** Module with math function operation on `REAL` type. Const ===== .. code-block:: modula2 e* = 2.7182818284; .. code-block:: modula2 pi* = 3.1415926535; Procedures ========== .. _Math.sqrt: sqrt ---- Computes the square root of the `REAL` x .. code-block:: modula2 PROCEDURE sqrt*(x: REAL): REAL; .. _Math.exp: exp --- Computes e raised to the power of x .. code-block:: modula2 PROCEDURE exp*(x: REAL): REAL; .. _Math.ln: ln -- Computes natural (e) logarithm of x .. code-block:: modula2 PROCEDURE ln*(x: REAL): REAL; .. _Math.sin: sin --- Computes the sine of the angle `REAL` x in radians .. code-block:: modula2 PROCEDURE sin*(x: REAL): REAL; .. _Math.cos: cos --- Computes the cosine of the angle `REAL` x in radians .. code-block:: modula2 PROCEDURE cos*(x: REAL): REAL; .. _Math.arctan: arctan ------ Computes the arc tangent of the value `REAL` x .. code-block:: modula2 PROCEDURE arctan*(x: REAL): REAL; .. _Math.real: real ---- Return the `INTEGER` x converted to `REAL` .. code-block:: modula2 PROCEDURE real*(x: INTEGER): REAL; .. _Math.entier: entier ------ Computes the largest integer value not greater than x .. code-block:: modula2 PROCEDURE entier*(x: REAL): INTEGER;