mathh.inc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Florian Klaempfl,
  5. member of the Free Pascal development team
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. { declarations of the math routines }
  13. function abs(d : extended) : extended;
  14. function arctan(d : extended) : extended;
  15. function cos(d : extended) : extended;
  16. function exp(d : extended) : extended;
  17. function frac(d : extended) : extended;
  18. function int(d : extended) : extended;
  19. function ln(d : extended) : extended;
  20. function pi : extended;
  21. function round(d : extended) : longint;
  22. function sin(d : extended) : extended;
  23. function sqr(d : extended) : extended;
  24. function sqrt(d : extended) : extended;
  25. function trunc(d : extended) : int64;
  26. function power(bas,expo : extended) : extended;
  27. function power(bas,expo : longint) : longint;
  28. type
  29. real48 = array[0..5] of byte;
  30. function Real2Double(r : real48) : double;
  31. {
  32. $Log$
  33. Revision 1.4 2001-07-30 21:38:55 peter
  34. * m68k updates merged
  35. }