mathh.inc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.1 1998-03-25 11:18:43 root
  40. Initial revision
  41. Revision 1.7 1998/01/27 12:44:46 peter
  42. * removed comment level 2 warning
  43. Revision 1.6 1998/01/26 11:59:40 michael
  44. + Added log at the end
  45. Working file: rtl/inc/mathh.inc
  46. description:
  47. ----------------------------
  48. revision 1.5
  49. date: 1997/12/01 12:08:04; author: michael; state: Exp; lines: +12 -4
  50. + added copyright reference header.
  51. ----------------------------
  52. revision 1.4
  53. date: 1997/11/28 23:26:45; author: florian; state: Exp; lines: +3 -5
  54. $ifdef fixed added
  55. ----------------------------
  56. revision 1.3
  57. date: 1997/11/28 19:45:21; author: pierre; state: Exp; lines: +35 -33
  58. * one more bug fix with namelength
  59. + fixed math in fixed_math define (does not compile yet)
  60. ----------------------------
  61. revision 1.2
  62. date: 1997/11/28 16:49:08; author: carl; state: Exp; lines: +33 -26
  63. + added fixed point routines.
  64. ----------------------------
  65. revision 1.1
  66. date: 1997/11/27 08:33:47; author: michael; state: Exp;
  67. Initial revision
  68. ----------------------------
  69. revision 1.1.1.1
  70. date: 1997/11/27 08:33:47; author: michael; state: Exp; lines: +0 -0
  71. FPC RTL CVS start
  72. =============================================================================
  73. }