mathh.inc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. {$ifdef DEFAULT_EXTENDED}
  14. function abs(d : extended) : extended;
  15. function arctan(d : extended) : extended;
  16. function cos(d : extended) : extended;
  17. function exp(d : extended) : extended;
  18. function frac(d : extended) : extended;
  19. function int(d : extended) : extended;
  20. function ln(d : extended) : extended;
  21. function pi : extended;
  22. function round(d : extended) : longint;
  23. function sin(d : extended) : extended;
  24. function sqr(d : extended) : extended;
  25. function sqrt(d : extended) : extended;
  26. function trunc(d : extended) : longint;
  27. function power(bas,expo : extended) : extended;
  28. {$else DEFAULT_EXTENDED}
  29. function abs(d : real) : real;
  30. function arctan(d : real) : real;
  31. function cos(d : real) : real;
  32. function exp(d : real) : real;
  33. function frac(d : real) : real;
  34. function int(d : real) : real;
  35. function ln(d : real) : real;
  36. function round(d : real) : longint;
  37. function sin(d : real) : real;
  38. function sqr(d : real) : real;
  39. function sqrt(d : real) : real;
  40. function trunc(d : real) : longint;
  41. function power(bas,expo : real) : real;
  42. function pi : real;
  43. {$endif DEFAULT_EXTENDED}
  44. function power(bas,expo : longint) : longint;
  45. {$ifdef _SUPPORT_FIXED}
  46. function sqrt(d : fixed) : fixed;
  47. function Round(x: fixed): longint;
  48. function sqr(d : fixed) : fixed;
  49. function abs(d : fixed) : fixed;
  50. function frac(d : fixed) : fixed;
  51. function trunc(d : fixed) : longint;
  52. function int(d : fixed) : fixed;
  53. {$endif SUPPORT_FIXED}
  54. {
  55. $Log$
  56. Revision 1.8 2000-02-09 16:59:30 peter
  57. * truncated log
  58. Revision 1.7 2000/01/07 16:41:34 daniel
  59. * copyright 2000
  60. Revision 1.6 2000/01/07 16:32:24 daniel
  61. * copyright 2000 added
  62. }