home *** CD-ROM | disk | FTP | other *** search
-
-
- TABLE OF CONTENTS
-
- --background--
- rexx_math.library/Abs
- rexx_math.library/ACos
- rexx_math.library/ACosH
- rexx_math.library/ASin
- rexx_math.library/ASinH
- rexx_math.library/ATan
- rexx_math.library/ATan2
- rexx_math.library/ATanH
- rexx_math.library/Ceil
- rexx_math.library/Cos
- rexx_math.library/CosH
- rexx_math.library/Cot
- rexx_math.library/Csc
- rexx_math.library/Exp
- rexx_math.library/Fact
- rexx_math.library/Floor
- rexx_math.library/Log
- rexx_math.library/Log10
- rexx_math.library/NInt
- rexx_math.library/Pow
- rexx_math.library/Sec
- rexx_math.library/Sin
- rexx_math.library/SinH
- rexx_math.library/Sqrt
- rexx_math.library/Tan
- rexx_math.library/TanH
-
-
- --background-- --background--
-
- $(C): (1996, Rocco Coluccelli, Bologna)
- $VER: rexx_math.library 37.00 (30.01.97)
-
- rexx_math.library
-
- This sub-library of the rexxMOOS.library let ARexx programmers
- use any math function. This is only a preliminary version not
- optimized to support any FPU.
-
- abs()
- acos()
- acosh()
- asin()
- asinh()
- atan()
- atan2()
- atanh()
- ceil()
- cos()
- cosh()
- cot()
- csc()
- exp()
- fact()
- floor()
- log()
- log10()
- nint()
- pow()
- sec()
- sin()
- sinh()
- sqrt()
- tan()
- tanh()
-
- NOTES
-
- Is part of the MOOS package.
-
- TODO
-
- BUGS
-
- rexx_math.library/Abs rexx_math.library/Abs
-
- NAME
-
- Abs -- Absolute value.
-
- SYNOPSIS
-
- z = Abs(x)
-
- FUNCTION
-
- Returns the absolute value of x. The given argument, x, may be
- any real number.
-
- EXAMPLE
-
- SAY Abs(-0.291268)
-
- rexx_math.library/ACos rexx_math.library/ACos
-
- NAME
-
- ACos -- ArcCosine function.
-
- SYNOPSIS
-
- z = ACos(x)
-
- FUNCTION
-
- Calculates the arccosine of x. The value of x must be in the
- range of [-1,1] (its absolute value is lower or equal to 1).
-
- EXAMPLE
-
- SAY ACos(-0.291268)
-
- rexx_math.library/ACosH rexx_math.library/ACosH
-
- NAME
-
- ACosH -- Hyperbolic arccosine function.
-
- SYNOPSIS
-
- z = ACosH(x)
-
- FUNCTION
-
- Calculates the hyperbolic arccosine of x. The value of x must
- be any real number greater or equal to 1.
-
- EXAMPLE
-
- SAY ACosH(1)
-
- rexx_math.library/ASin rexx_math.library/ASin
-
- NAME
-
- ASin -- ArcSine function.
-
- SYNOPSIS
-
- z = ASin(x)
-
- FUNCTION
-
- Calculates the arcsine of x. The value of x must be in the
- range of [-1,1] (its absolute value is lower or equal to 1).
-
- EXAMPLE
-
- SAY ASin(-0.291268)
-
- rexx_math.library/ASinH rexx_math.library/ASinH
-
- NAME
-
- ASinH -- Hyperbolic arcsine function.
-
- SYNOPSIS
-
- z = ASinH(x)
-
- FUNCTION
-
- Calculates the hyperbolic arcsine of x. The value of x may be
- any real number.
-
- EXAMPLE
-
- SAY ASinH(-0.291268)
-
- rexx_math.library/ATan rexx_math.library/ATan
-
- NAME
-
- ATan -- ArcTangent function.
-
- SYNOPSIS
-
- z = ATan(x)
-
- FUNCTION
-
- Calculates the arctangent of x. The value of x may be any
- real number.
-
- EXAMPLE
-
- SAY ATan(-0.291268)
-
- rexx_math.library/ATan2 rexx_math.library/ATan2
-
- NAME
-
- ATan2 -- ArcTangent of x/y.
-
- SYNOPSIS
-
- z = ATan2(x,y)
-
- FUNCTION
-
- Calculates the arctangent of x/y. The value of x may be any
- real number. The value of y might be not equal to zero, but
- the function returns the rigth value for the limit according
- with the sign of x.
-
- EXAMPLE
-
- SAY ATan2(1,0) /* ==> pi/2 */
- SAY ATan2(-1,0) /* ==> -pi/2 */
-
- rexx_math.library/ATanH rexx_math.library/ATanH
-
- NAME
-
- ATanH -- Hyperbolic arctangent function.
-
- SYNOPSIS
-
- z = ATanH(x)
-
- FUNCTION
-
- Calculates the hyperbolic arctangent of x. The value of x must
- be in the range of ]-1,1[.
-
- EXAMPLE
-
- SAY ATanH(-0.291268)
-
- rexx_math.library/Ceil rexx_math.library/Ceil
-
- NAME
-
- Ceil -- Get floating-point limits.
-
- SYNOPSIS
-
- z = Ceil(x)
-
- FUNCTION
-
- Returns the smallest whole number not less than the specified
- real number, x.
-
- EXAMPLE
-
- SAY Ceil(-0.291268)
-
- rexx_math.library/Cos rexx_math.library/Cos
-
- NAME
-
- Cos -- Cosine function.
-
- SYNOPSIS
-
- z = Cos(x)
-
- FUNCTION
-
- Calculates the cosine of x. The value of x may be any
- real number.
-
- EXAMPLE
-
- SAY Cos(0)
-
- rexx_math.library/CosH rexx_math.library/CosH
-
- NAME
-
- CosH -- Hyperbolic cosine function.
-
- SYNOPSIS
-
- z = CosH(x)
-
- FUNCTION
-
- Calculates the hyperbolic cosine of x. The value of x may be
- any real number.
-
- EXAMPLE
-
- SAY CosH(-0.291268)
-
- rexx_math.library/Cot rexx_math.library/Cot
-
- NAME
-
- Cot -- CoTangent function.
-
- SYNOPSIS
-
- z = Cot(x)
-
- FUNCTION
-
- Calculates the cotangent of x. The value of x may be any
- real number.
-
- EXAMPLE
-
- SAY Cot(-0.291268)
-
- rexx_math.library/Csc rexx_math.library/Csc
-
- NAME
-
- Csc -- Cosecant function.
-
- SYNOPSIS
-
- z = Csc(x)
-
- FUNCTION
-
- Calculates the cosecant of x. The value of x may be any
- real number, but not equal to (k + 1/2)Pi, k relative.
-
- EXAMPLE
-
- SAY Csc(0.5)
-
- rexx_math.library/Exp rexx_math.library/Exp
-
- NAME
-
- Exp -- Exponential function.
-
- SYNOPSIS
-
- z = Exp(x)
-
- FUNCTION
-
- Calculates the exponential of x. The value of x may be any
- real number.
-
- EXAMPLE
-
- SAY Exp(-0.291268)
-
- rexx_math.library/Fact rexx_math.library/Fact
-
- NAME
-
- Fact -- Factorial function.
-
- SYNOPSIS
-
- z = Fact(x)
-
- FUNCTION
-
- Calculates the factorial of x. The value of x must be any
- positive, integer number, lower than 170.
-
- EXAMPLE
-
- SAY Fact(5)
-
- rexx_math.library/Floor rexx_math.library/Floor
-
- NAME
-
- Floor -- Get the floor of a real number.
-
- SYNOPSIS
-
- z = Floor(x)
-
- FUNCTION
-
- Calculates the largest integer not greater than x.
-
- EXAMPLE
-
- SAY Floor(-0.291268)
-
- rexx_math.library/Log rexx_math.library/Log
-
- NAME
-
- Log -- Natural logarithm function.
-
- SYNOPSIS
-
- z = Log(x)
-
- FUNCTION
-
- Calculates the natural logarithm of x. The value of x must be
- any real number greater than zero.
-
- EXAMPLE
-
- SAY Log(1)
-
- rexx_math.library/Log10 rexx_math.library/Log10
-
- NAME
-
- Log10 -- Base 10 logarithm function.
-
- SYNOPSIS
-
- z = Log10(x)
-
- FUNCTION
-
- Calculates the base 10 logarithm of x. The value of x must
- be any real number greater than zero.
-
- EXAMPLE
-
- SAY Log10(1000)
-
- rexx_math.library/NInt rexx_math.library/NInt
-
- NAME
-
- NInt -- Nearest integer of any value.
-
- SYNOPSIS
-
- z = NInt(x)
-
- FUNCTION
-
- Calculates the nearest integer of x. The value of x may
- be any real number.
-
- EXAMPLE
-
- SAY NInt(-0.291268)
-
- rexx_math.library/Pow rexx_math.library/Pow
-
- NAME
-
- Pow -- Raise a number to a power.
-
- SYNOPSIS
-
- z = Pow(x,y)
-
- FUNCTION
-
- Raises the value of x to the power of y. The value of x must
- be greater than zero, but y may be any real number.
-
- EXAMPLE
-
- SAY Pow(2,32)
-
- rexx_math.library/Sec rexx_math.library/Sec
-
- NAME
-
- Sec -- Secant function.
-
- SYNOPSIS
-
- z = Sec(x)
-
- FUNCTION
-
- Calculates the secant of x. The value of x may be any
- real number, but not equal to any multiple of Pi.
-
- EXAMPLE
-
- SAY Sec(0.5)
-
- rexx_math.library/Sin rexx_math.library/Sin
-
- NAME
-
- Sin -- Sine function.
-
- SYNOPSIS
-
- z = Sin(x)
-
- FUNCTION
-
- Calculates the sine of x. The value of x may be any
- real number.
-
- EXAMPLE
-
- SAY Sin(0)
-
- rexx_math.library/SinH rexx_math.library/SinH
-
- NAME
-
- SinH -- Hyperbolic Sine function.
-
- SYNOPSIS
-
- z = SinH(x)
-
- FUNCTION
-
- Calculates the hyperbolic sine of x. The value of x may be
- any real number.
-
- EXAMPLE
-
- SAY SinH(-0.291268)
-
- rexx_math.library/Sqrt rexx_math.library/Sqrt
-
- NAME
-
- Sqrt -- Square root function.
-
- SYNOPSIS
-
- z = Sqrt(x)
-
- FUNCTION
-
- Calculates the square root of x. The value of x must be any
- positive number (any real greater or equal to zero).
-
- EXAMPLE
-
- SAY Sqrt(4096)
-
- rexx_math.library/Tan rexx_math.library/Tan
-
- NAME
-
- Tan -- Tangent function.
-
- SYNOPSIS
-
- z = Tan(x)
-
- FUNCTION
-
- Calculates the tangent of x. The value of x may be any
- real number.
-
- EXAMPLE
-
- SAY Tan(0)
-
- rexx_math.library/TanH rexx_math.library/TanH
-
- NAME
-
- TanH -- Hyperbolic tangent function.
-
- SYNOPSIS
-
- z = TanH(x)
-
- FUNCTION
-
- Calculates the hyperbolic tangent of x. The value of x may be
- any real number.
-
- EXAMPLE
-
- SAY TanH(-0.291268)
-
-
-