mathh.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. {$ifdef SUPPORT_DOUBLE}
  29. type
  30. real48 = array[0..5] of byte;
  31. function Real2Double(r : real48) : double;
  32. operator := (b:real48) d:double;
  33. operator := (b:real48) e:extended;
  34. {$endif}
  35. {
  36. $Log$
  37. Revision 1.6 2001-12-26 21:03:56 peter
  38. * merged fixes from 1.0.x
  39. Revision 1.5 2001/12/13 20:23:19 michael
  40. + Added double2real function from main branch
  41. Revision 1.4 2001/07/30 21:38:55 peter
  42. * m68k updates merged
  43. }