mathh.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. function abs(d : real) : real;
  14. function arctan(d : real) : real;
  15. function cos(d : real) : real;
  16. function exp(d : real) : real;
  17. function frac(d : real) : real;
  18. function int(d : real) : real;
  19. function ln(d : real) : real;
  20. function pi : real;
  21. function round(d : real) : longint;
  22. function sin(d : real) : real;
  23. function sqr(d : real) : real;
  24. function sqrt(d : real) : real;
  25. function trunc(d : real) : longint;
  26. function power(bas,expo : real) : real;
  27. function power(bas,expo : longint) : longint;
  28. {$ifdef FIXED}
  29. function sqrt(d : fixed) : fixed;
  30. function Round(x: fixed): longint;
  31. function sqr(d : fixed) : fixed;
  32. function abs(d : fixed) : fixed;
  33. function frac(d : fixed) : fixed;
  34. function trunc(d : fixed) : longint;
  35. function int(d : fixed) : fixed;
  36. {$endif FIXED}
  37. {
  38. $Log$
  39. Revision 1.2 1998-05-12 10:42:45 peter
  40. * moved getopts to inc/, all supported OS's need argc,argv exported
  41. + strpas, strlen are now exported in the systemunit
  42. * removed logs
  43. * removed $ifdef ver_above
  44. }