C-XSC - A C++ Class Library for Extended Scientific Computing  2.5.4
l_rmath.hpp
1 /*
2 ** CXSC is a C++ library for eXtended Scientific Computing (V 2.5.4)
3 **
4 ** Copyright (C) 1990-2000 Institut fuer Angewandte Mathematik,
5 ** Universitaet Karlsruhe, Germany
6 ** (C) 2000-2014 Wiss. Rechnen/Softwaretechnologie
7 ** Universitaet Wuppertal, Germany
8 **
9 ** This library is free software; you can redistribute it and/or
10 ** modify it under the terms of the GNU Library General Public
11 ** License as published by the Free Software Foundation; either
12 ** version 2 of the License, or (at your option) any later version.
13 **
14 ** This library is distributed in the hope that it will be useful,
15 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ** Library General Public License for more details.
18 **
19 ** You should have received a copy of the GNU Library General Public
20 ** License along with this library; if not, write to the Free
21 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23 
24 /* CVS $Id: l_rmath.hpp,v 1.32 2014/01/30 17:23:46 cxsc Exp $ */
25 
26 #ifndef _CXSC_L_RMATH_HPP_INCLUDED
27 #define _CXSC_L_RMATH_HPP_INCLUDED
28 
29 #include "l_real.hpp"
30 
31 namespace cxsc {
32 
34 inline l_real sqr (const l_real&) throw(); // Sqr(x)
36  l_real sqrt (const l_real&) throw(ERROR_LREAL_STD_FKT_OUT_OF_DEF);
37  // Sqrt(x)
39  l_real sqrtx2y2(const l_real&, const l_real&) throw();
40  // Sqrt(x^2+y^2)
42  l_real sqrt1px2(const l_real&) throw(); // Sqrt(1+x^2)
44 inline l_real sqrtp1m1(const l_real &) throw();
46 inline l_real sqrtx2m1(const l_real &) throw();
48 inline l_real sqrt1mx2(const l_real &) throw();
50 inline l_real expm1 (const l_real &x) throw();
52 inline l_real expmx2 (const l_real&) throw();
54 inline l_real ln_sqrtx2y2(const l_real& x, const l_real& y) throw();
56 inline l_real acoshp1 (const l_real& x);
57 
58 // inline l_real sqrt (const l_real &, int); // Sqrt(x, n)
59 // inline l_real sin (const l_real&) throw(); // Sin(x)
60 // inline l_real cos (const l_real&) throw(); // Cos(x)
61 // inline l_real tan (const l_real&) throw(); // Tan(x)
62 // inline l_real cot (const l_real&) throw(); // Cot(x)
63 // inline l_real asin (const l_real&); // ASin(x)
64 // inline l_real acos (const l_real&); // ACos(x)
65 // inline l_real atan (const l_real&); // ATan(x)
66 // inline l_real acot (const l_real&); // ACot(x)
67 // inline l_real exp (const l_real&) throw(); // Exp(x)
68 // inline l_real ln (const l_real&); // Ln(x)
69 // inline l_real sinh (const l_real&) throw(); // Sinh(x)
70 // inline l_real cosh (const l_real&) throw(); // Cosh(x)
71 // inline l_real tanh (const l_real&) throw(); // Tanh(x)
72 // inline l_real coth (const l_real&) throw(); // Coth(x)
73 // inline l_real asinh (const l_real&); // ASinh(x)
74 // inline l_real acosh (const l_real&); // ACosh(x)
75 // inline l_real atanh (const l_real&); // ATanh(x)
76 // inline l_real acoth (const l_real&); // ACoth(x)
77 
79 inline l_real pow (const l_real&, const l_real&); // Pow(x,y)
81 l_real power (const l_real&, const int); // Power(x,n)
82 
83 // real staggered constants (the same as in l_interval.hpp):
84 l_real Ln2_l_real() throw(); // ln(2)
85 l_real Ln10_l_real() throw(); // ln(10)
86 l_real Ln10r_l_real() throw(); // 1/ln(10)
87 l_real Pid4_l_real() throw(); // Pi/4
88 l_real Sqrt2_l_real() throw(); // sqrt(2)
89 l_real Sqrt5_l_real() throw(); // sqrt(5)
90 l_real Sqrt7_l_real() throw(); // sqrt(7)
91 l_real Ln2r_l_real() throw(); // 1/ln(2)
92 l_real Pi_l_real() throw(); // Pi
93 l_real Pid2_l_real() throw(); // Pi/2
94 l_real Pi2_l_real() throw(); // 2*Pi
95 l_real Pid3_l_real() throw(); // Pi/3
96 l_real Pir_l_real() throw(); // 1/Pi
97 l_real Pi2r_l_real() throw(); // 1/(2*Pi)
98 l_real SqrtPi_l_real() throw(); // sqrt(Pi)
99 l_real Sqrt2Pi_l_real() throw(); // sqrt(2*Pi)
100 l_real SqrtPir_l_real() throw(); // 1/sqrt(Pi)
101 l_real Sqrt2Pir_l_real() throw(); // 1/sqrt(2*Pi)
102 l_real Pip2_l_real() throw(); // Pi^2
103 l_real Sqrt2r_l_real() throw(); // 1/sqrt(2)
104 l_real Sqrt3_l_real() throw(); // sqrt(3)
105 l_real Sqrt3d2_l_real() throw(); // sqrt(3)/2
106 l_real Sqrt3r_l_real() throw(); // 1/sqrt(3)
107 l_real LnPi_l_real() throw(); // ln(Pi)
108 l_real Ln2Pi_l_real() throw(); // ln(2*Pi)
109 l_real E_l_real() throw(); // e = exp(1)
110 l_real Er_l_real() throw(); // 1/e
111 l_real Ep2_l_real() throw(); // e^2
112 l_real Ep2r_l_real() throw(); // 1/e^2
113 l_real EpPi_l_real() throw(); // e^Pi
114 l_real Ep2Pi_l_real() throw(); // e^(2*Pi)
115 l_real EpPid2_l_real() throw(); // e^(Pi/2)
116 l_real EpPid4_l_real() throw(); // e^(Pi/4)
117 l_real EulerGa_l_real() throw(); // EulerGamma
118 l_real Catalan_l_real() throw(); // Catalan
119 
120 } // namespace cxsc
121 
122 #include "l_rmath.inl"
123 #endif // _CXSC_L_RMATH_HPP_INCLUDED
cinterval sqrtx2m1(const cinterval &z)
Calculates .
Definition: cimath.cpp:1109
l_real Ep2Pi_l_real()
Approximation of .
Definition: l_rmath.cpp:268
l_real E_l_real()
Approximation of .
Definition: l_rmath.cpp:258
cinterval sqrt1px2(const cinterval &z)
Calculates .
Definition: cimath.cpp:1071
l_real Pip2_l_real()
Approximation of .
Definition: l_rmath.cpp:244
l_real EpPid2_l_real()
Approximation of .
Definition: l_rmath.cpp:270
l_real Pir_l_real()
Approximation of .
Definition: l_rmath.cpp:232
l_real Ln2_l_real()
Approximation of .
Definition: l_rmath.cpp:208
l_real EpPi_l_real()
Approximation of .
Definition: l_rmath.cpp:266
interval sqrtx2y2(const interval &x, const interval &y)
Calculates .
Definition: imath.cpp:80
The namespace cxsc, providing all functionality of the class library C-XSC.
Definition: cdot.cpp:29
interval ln_sqrtx2y2(const interval &x, const interval &y)
Calculates .
Definition: imath.cpp:581
l_real Ln10r_l_real()
Approximation of .
Definition: l_rmath.cpp:212
l_real Sqrt3r_l_real()
Approximation of .
Definition: l_rmath.cpp:252
l_real EulerGa_l_real()
Approximation of Euler Gamma.
Definition: l_rmath.cpp:274
cinterval sqr(const cinterval &z)
Calculates .
Definition: cimath.cpp:3342
l_real SqrtPi_l_real()
Approximation of .
Definition: l_rmath.cpp:236
l_real Pi2r_l_real()
Approximation of .
Definition: l_rmath.cpp:234
l_real Ln10_l_real()
Approximation of .
Definition: l_rmath.cpp:210
l_real Sqrt3_l_real()
Approximation of .
Definition: l_rmath.cpp:248
l_real Sqrt3d2_l_real()
Approximation of .
Definition: l_rmath.cpp:250
cinterval expm1(const cinterval &z)
Calculates .
Definition: cimath.cpp:177
l_real LnPi_l_real()
Approximation of .
Definition: l_rmath.cpp:254
l_real Ep2_l_real()
Approximation of .
Definition: l_rmath.cpp:262
cinterval sqrt1mx2(const cinterval &z)
Calculates .
Definition: cimath.cpp:1140
l_real SqrtPir_l_real()
Approximation of .
Definition: l_rmath.cpp:240
interval acoshp1(const interval &x)
Calculates .
Definition: imath.cpp:617
l_real Ln2r_l_real()
Approximation of .
Definition: l_rmath.cpp:222
l_real Ln2Pi_l_real()
Approximation of .
Definition: l_rmath.cpp:256
l_real Er_l_real()
Approximation of .
Definition: l_rmath.cpp:260
l_real Pi2_l_real()
Approximation of .
Definition: l_rmath.cpp:228
l_real Sqrt7_l_real()
Approximation of .
Definition: l_rmath.cpp:220
interval expmx2(const interval &x)
Calculates .
Definition: imath.cpp:192
l_real Pid2_l_real()
Approximation of .
Definition: l_rmath.cpp:226
cinterval sqrt(const cinterval &z)
Calculates .
Definition: cimath.cpp:1007
l_real Pid3_l_real()
Approximation of .
Definition: l_rmath.cpp:230
l_real Pid4_l_real()
Approximation of .
Definition: l_rmath.cpp:214
cinterval sqrtp1m1(const cinterval &z)
Calculates .
Definition: cimath.cpp:1054
l_real Catalan_l_real()
Approximation of Catalan Numbers.
Definition: l_rmath.cpp:276
l_real Sqrt2_l_real()
Approximation of .
Definition: l_rmath.cpp:216
l_real Sqrt2Pi_l_real()
Approximation of .
Definition: l_rmath.cpp:238
l_real Ep2r_l_real()
Approximation of .
Definition: l_rmath.cpp:264
l_real Sqrt5_l_real()
Approximation of .
Definition: l_rmath.cpp:218
cinterval pow(const cinterval &z, const interval &p)
Calculates .
Definition: cimath.cpp:2074
l_real EpPid4_l_real()
Approximation of .
Definition: l_rmath.cpp:272
l_real Pi_l_real()
Approximation of .
Definition: l_rmath.cpp:224
cinterval power(const cinterval &z, int n)
Calculates .
Definition: cimath.cpp:1941
l_real Sqrt2r_l_real()
Approximation of .
Definition: l_rmath.cpp:246
l_real Sqrt2Pir_l_real()
Approximation of .
Definition: l_rmath.cpp:242