RealFns.mesa
Copyright Ó 1985, 1986, 1987, 1991 by Xerox Corporation. All rights reserved.
Stewart, August 27, 1982 11:21 am
E. McCreight, November 16, 1984 11:47:34 am PST (RealFnsExtras)
Russ Atkinson (RRA) November 14, 1986 7:06:17 pm PST
Doug Wyatt, January 15, 1987 1:14:03 pm PST
Willie-s, August 6, 1991 1:05 pm PDT
Exponent and logarithm functions
Exp:
PROC [
REAL]
RETURNS [
REAL];
For an input argument n, returns e^n (e=2.718...).
Computed by continued fractions.
Ln:
PROC [
REAL]
RETURNS [
REAL];
Computes the natural logarithm (base e) of the input argument.
Log:
PROC [base, arg:
REAL]
RETURNS [
REAL];
Computes logarithm to the base base of arg.
Computed by Ln(arg)/Ln(base).
Power:
PROC [base, exponent:
REAL]
RETURNS [
REAL];
Calculates base to the exponent power by e(exponent*Ln(base)).
Root:
PROC [index, arg:
REAL]
RETURNS [
REAL];
Calculates the index root of arg by e(Ln(arg)/index).
SqRt:
PROC [
REAL]
RETURNS [
REAL];
Calculates the square root of the input value by Newton's iteration.
Trigonometric functions
Sin: PROC [radians: REAL] RETURNS [sin: REAL];
SinDeg:
PROC [degrees:
REAL]
RETURNS [sin:
REAL];
Cos: PROC [radians: REAL] RETURNS [cos: REAL];
CosDeg:
PROC [degrees:
REAL]
RETURNS [cos:
REAL];
Tan: PROC [radians: REAL] RETURNS [tan: REAL];
TanDeg:
PROC [degrees:
REAL]
RETURNS [tan:
REAL];
Computes the trigonometric functions by polynomial;
good to 7.33 decimal places.
ArcTan: PROC [y, x: REAL] RETURNS [radians: REAL];
ArcTanDeg:
PROC [y, x:
REAL]
RETURNS [degrees:
REAL];
Good to 8.7 decimal places.
CoTan: PROC [radians: REAL] RETURNS [cotan: REAL];
CoTanDeg:
PROC [degrees:
REAL]
RETURNS [cotan:
REAL];
ArcSin: PROC [x: REAL] RETURNS [ REAL];
ArcSinDeg:
PUBLIC
PROC [x:
REAL]
RETURNS [degrees:
REAL];
ArcCos: PROC[x: REAL] RETURNS [REAL];
ArcCosDeg: PUBLIC PROC [x: REAL] RETURNS [degrees: REAL];