mathh.inc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1993,97 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.5 1998-08-11 21:39:05 peter
  57. * splitted default_extended from support_extended
  58. Revision 1.4 1998/08/11 00:05:24 peter
  59. * $ifdef ver0_99_5 updates
  60. Revision 1.3 1998/08/08 12:28:11 florian
  61. * a lot small fixes to the extended data type work
  62. Revision 1.2 1998/05/12 10:42:45 peter
  63. * moved getopts to inc/, all supported OS's need argc,argv exported
  64. + strpas, strlen are now exported in the systemunit
  65. * removed logs
  66. * removed $ifdef ver_above
  67. }