home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / programs / system / quicktrans / quicktrans.doc < prev    next >
Text File  |  1995-02-27  |  2KB  |  44 lines

  1. Useage: Quicktrans.library is a replacement for mathtrans.library.
  2. Just re-name it and put it wherever you formerly kept mathtrans.library.
  3. The libary offsets are identical. In addition there is a 10^X function,
  4. (I call it expten), with offset -132.
  5.  
  6. Speed: Trig functions are typically 2 to 2.5 times as fast as corresponding
  7. mathtrans.library functions ( except sincos, but it's rarely used).
  8. Logarithmic, exponential and hyperbolic functions are closer to 3 times as
  9. fast. Tieee and Fieee run in about 58% of the corresponding mathtrans.library
  10. time. Sqrt is the slowest, but it still runs in about two thirds of the
  11. mathtrans.library time.
  12.  
  13. Method: Most of the functions are calculated using the first few terms of
  14. the appropriate Taylor series approximation and corresponding data tables.
  15. Much of the speed increase comes from using scaled-up integers rather than
  16. floating point representations wherever possible.
  17.  
  18. Accuracy: Since the Motorola ffp format used in mathtrans.library uses 24
  19. bits for the mantissa, the mathtrans library provides at best between 6 and
  20. 7 decimal digit accuracy. I scale up by a factor of 2^24, resulting in
  21. just about the same accuracy. For numbers of absolute value greater than one
  22. my results almost always agree with mathtrans.library in at least the first
  23. 6 digits, with the seventh digits usually within 4 of each other. For numbers
  24. with absolute value less than 1, my results almost always agree with
  25. mathtrans.library within about 0.0000004. The only exception I'm aware of is
  26. the tangent function very close to odd multiples of pi/2, but neither
  27. library is very accurate there. Who cares if the tangent of 1.57 is 1255
  28. or 1256?
  29.  
  30. Distribution: Use the library in whatever way you want to, but not for
  31. commercial use without my written permission. If you distribute it, please
  32. keep this document with it.
  33.  
  34. Bug reports, comments, questions, etc. to:
  35.  
  36.                              Martin F. Combs
  37.  
  38.                              2989 Sundance Circle
  39.                              Las Cruces, NM 88001
  40.                              USA
  41.  
  42.                              (505) 522-6408
  43.  
  44.