mathh.inc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. {$ifdef SUPPORT_DOUBLE}
  31. function Real2Double(r : real48) : double;
  32. operator := (b:real48) d:double;
  33. {$endif}
  34. {$ifdef SUPPORT_EXTENDED}
  35. operator := (b:real48) e:extended;
  36. {$endif SUPPORT_EXTENDED}
  37. {
  38. $Log$
  39. Revision 1.8 2002-09-07 15:07:45 peter
  40. * old logs removed and tabs fixed
  41. Revision 1.7 2002/07/26 22:46:06 florian
  42. * interface of system unit for Linux/PowerPC compiles
  43. }