00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _CXSC_RMATH_HPP_INCLUDED
00027 #define _CXSC_RMATH_HPP_INCLUDED
00028
00029 #include "real.hpp"
00030 #include <dot.hpp>
00031
00032 namespace cxsc {
00033
00035 inline real sqr (const real&) throw();
00037 inline real sqrt (const real&);
00039 inline real sqrt (const real &, int);
00041 real sqrt1px2(const real&) throw();
00043 inline real sqrtm1 (const real&);
00045 real sqrtp1m1(const real&) throw();
00047 real sqrtx2m1(const real&);
00049 real sqrt1mx2(const real&) throw(STD_FKT_OUT_OF_DEF);
00050
00051
00053 inline real sin (const real&) throw();
00055 real sinpix_pi(const real& x);
00057 inline real cos (const real&) throw();
00059 inline real tan (const real&) throw();
00061 inline real cot (const real&) throw();
00062
00064 inline real asin (const real&);
00066 inline real acos (const real&);
00068 inline real atan (const real&);
00070 inline real acot (const real&);
00071
00073 inline real exp (const real&) throw();
00075 inline real expm1 (const real&) throw();
00077 real expmx2 (const real&) throw();
00079 real expx2 (const real& x);
00081 real expx2m1(const real& x);
00082
00084 inline real lnp1 (const real&);
00086 inline real ln (const real&);
00088 inline real log2 (const real&);
00090 inline real log10 (const real&);
00091
00093 inline real sinh (const real&) throw();
00095 inline real cosh (const real&) throw();
00097 real acoshp1(const real& x) throw();
00099 inline real tanh (const real&) throw();
00101 inline real coth (const real&) throw();
00102
00104 inline real asinh (const real&);
00106 inline real acosh (const real&);
00108 inline real atanh (const real&);
00110 inline real acoth (const real&);
00112 inline real erf (const real&);
00114 inline real erfc (const real&);
00116 real gamma (const real& x);
00118 real gammar(const real& x);
00119
00121 inline real pow (const real&, const real&);
00123 inline real power (const real&, const int);
00124
00126 real sqrtx2y2(const real&, const real&) throw();
00128 real ln_sqrtx2y2(const real&, const real&) throw(STD_FKT_OUT_OF_DEF);
00129
00130
00132 real Cut24(const real&);
00134 real Cut25(const real&);
00136 real Cut26(const real&);
00138 int Round(const real& x) throw();
00140 int ceil(const real& x) throw();
00142 int ifloor(const real& x) throw();
00143
00144 extern "C" {
00145 void r_lfsr(void);
00146 }
00147
00148 }
00149
00150 #include "rmath.inl"
00151 #endif // _CXSC_RMATH_HPP_INCLUDED
00152