home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ACS 1998 #5
/
amigaacscoverdisc1998-051998.iso
/
Libs
/
rexxmathlib.doc
< prev
next >
Wrap
Text File
|
1997-02-24
|
5KB
|
103 lines
rexxmathlib.library version 1.2 and 1.3
=======================================
This version is identical to the previous release. The only change is
that the version for the 1.3 math libraries now shows version 1.3, when you use
the AmigaDOS version command. Included in this archive is also version 1.2,
compiled and linked for AmigaDOS 1.2. It is called rexxmath1.2.library, and if
you want to use it, you must copy it to libs: as rexxmathlib.library.
Willy Langeveld, 20 May 1989.
With the previous release:
==========================
This version is recompiled and relinked for use with the AmigaDOS
1.3 IEEE math libraries. How do you keep the various versions apart?
The size of the one for 1.3 is 7012 bytes. The previous release was some
13900 bytes, whereas the special release for the StarBoard II's 68881 was
8152 bytes. Which one to use? If you have AmigaDOS 1.3, use the one that's
7012 bytes long. If you have 1.2 or (heaven forbid) 1.1, use the 13900 byte
one. If you have 1.2 and a StarBoard II, AND a 68881 in its multifunction
module, use the special one after renaming it to rexxmathlib.library.
This archive *only* includes the 7012 byte one. It can only be used
with the 1.3 IEEE math libraries.
Willy Langeveld, 31 January, 5 April 1989.
Documentation for the AmigaREXX math library, version 1.0.
==========================================================
In version 1 of the AmigaREXX math library the following functions
have been implemented. In column 1 you will find the function, in column 2
the calling sequence, and in column 3 some aliases. Column 4 has the allowed
ranges of the arguments that will not cause an error.
The regular library is called rexxmathlib.library: it should work on
all Amigas. However, if you own a StarBoard II memory expansion with a
Multi-Function Module plus 68881 math coprocessor, you can speed up your
REXX math by using the library rexxmathsbii.library instead. You will then
also need the MicroBotics supplied IEEE libraries.
Willy Langeveld.
Function Call. Seq. Alias(es) Requires
----------------------------------------------------------------------------
Absolute value abs(x) fabs
Inverse cosine acos(x) -1.0 <= x <= 1.0
Inverse hyperbolic cos acosh(x) x >= 1.0
Inverse sine asin(x) -1.0 <= x <= 1.0
Inverse hyperbolic sin asinh(x)
Inverse tangent atan(x)
Inverse hyp. tangent atanh(x) -1.0 < x < 1.0
Inv. tangent y/x atan(y,x) y != 0.0, x != 0.0
Lowest integer above x ceil(x)
Cosine cos(x)
Hyperbolic cosine cosh(x)
Cotangent cot(x) cotan
Cotangent cotan(x) cot
Cosecans csc(x)
e to the power x exp(x)
Absolute value fabs(x) abs
Factorial fact(x) x >= 0, x < 171
Highest integer below x floor(x) int
Highest integer below x int(x) floor
Log base e ln(x) log x > 0.0
Log base e log(x) ln x > 0.0
Log base 10 log10(x) x > 0.0
Nearest integer to x nint(x)
x to the power y pow(x,y) power, xtoy x >= 0.0
x to the power y power(x,y) pow, xtoy x >= 0.0
Secans sec(x)
Sine sin(x)
Hyperbolic sine sinh(x)
Square root sqrt(x) x >= 0.0
Tangent tan(x)
Hyperbolic tangent tanh(x)
x to the power y xtoy(x,y) pow, power x >= 0.0
+----------------------------------------------------------------------+
| |
| D I S C L A I M E R N O T I C E |
| |
| This document and/or portions of the material and data furnished |
| herewith, was developed under sponsorship of the U.S. Government. |
| Neither the U.S. nor the U.S.D.O.E., nor the Leland Stanford |
| Junior University, nor their employees, nor their respective con- |
| tractors, subcontractors, or their employees, makes any warranty, |
| express or implied, or assumes any liability or responsibility for |
| accuracy, completeness or usefulness of any information, appara- |
| tus, product or process disclosed, or represents that its use will |
| not infringe privately-owned rights. Mention of any product, its |
| manufacturer, or suppliers shall not, nor is it intended to, imply |
| approval, disapproval, or fitness for any particular use. The U.S. |
| and the University at all times retain the right to use and dis- |
| seminate same for any purpose whatsoever. |
| |
+----------------------------------------------------------------------+