Chris@16
|
1 // (C) Copyright John Maddock 2008.
|
Chris@16
|
2 // Use, modification and distribution are subject to the
|
Chris@16
|
3 // Boost Software License, Version 1.0. (See accompanying file
|
Chris@16
|
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
5
|
Chris@16
|
6 #ifndef BOOST_TR1_CMATH_HPP_INCLUDED
|
Chris@16
|
7 # define BOOST_TR1_CMATH_HPP_INCLUDED
|
Chris@16
|
8 # include <boost/tr1/detail/config.hpp>
|
Chris@16
|
9
|
Chris@16
|
10 #ifdef BOOST_HAS_TR1_CMATH
|
Chris@16
|
11
|
Chris@16
|
12 # if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT)
|
Chris@16
|
13 # include_next BOOST_TR1_HEADER(cmath)
|
Chris@16
|
14 # else
|
Chris@16
|
15 # include <boost/tr1/detail/config_all.hpp>
|
Chris@16
|
16 # include BOOST_TR1_HEADER(cmath)
|
Chris@16
|
17 # endif
|
Chris@16
|
18
|
Chris@16
|
19 #else
|
Chris@16
|
20
|
Chris@16
|
21 #include <boost/math/tr1.hpp>
|
Chris@16
|
22
|
Chris@16
|
23 namespace std{ namespace tr1{
|
Chris@16
|
24
|
Chris@16
|
25 using boost::math::tr1::assoc_laguerre;
|
Chris@16
|
26 using boost::math::tr1::assoc_laguerref;
|
Chris@16
|
27 using boost::math::tr1::assoc_laguerrel;
|
Chris@16
|
28 // [5.2.1.2] associated Legendre functions:
|
Chris@16
|
29 using boost::math::tr1::assoc_legendre;
|
Chris@16
|
30 using boost::math::tr1::assoc_legendref;
|
Chris@16
|
31 using boost::math::tr1::assoc_legendrel;
|
Chris@16
|
32 // [5.2.1.3] beta function:
|
Chris@16
|
33 using boost::math::tr1::beta;
|
Chris@16
|
34 using boost::math::tr1::betaf;
|
Chris@16
|
35 using boost::math::tr1::betal;
|
Chris@16
|
36 // [5.2.1.4] (complete) elliptic integral of the first kind:
|
Chris@16
|
37 using boost::math::tr1::comp_ellint_1;
|
Chris@16
|
38 using boost::math::tr1::comp_ellint_1f;
|
Chris@16
|
39 using boost::math::tr1::comp_ellint_1l;
|
Chris@16
|
40 // [5.2.1.5] (complete) elliptic integral of the second kind:
|
Chris@16
|
41 using boost::math::tr1::comp_ellint_2;
|
Chris@16
|
42 using boost::math::tr1::comp_ellint_2f;
|
Chris@16
|
43 using boost::math::tr1::comp_ellint_2l;
|
Chris@16
|
44 // [5.2.1.6] (complete) elliptic integral of the third kind:
|
Chris@16
|
45 using boost::math::tr1::comp_ellint_3;
|
Chris@16
|
46 using boost::math::tr1::comp_ellint_3f;
|
Chris@16
|
47 using boost::math::tr1::comp_ellint_3l;
|
Chris@16
|
48 #if 0
|
Chris@16
|
49 // [5.2.1.7] confluent hypergeometric functions:
|
Chris@16
|
50 using boost::math::tr1::conf_hyperg;
|
Chris@16
|
51 using boost::math::tr1::conf_hypergf;
|
Chris@16
|
52 using boost::math::tr1::conf_hypergl;
|
Chris@16
|
53 #endif
|
Chris@16
|
54 // [5.2.1.8] regular modified cylindrical Bessel functions:
|
Chris@16
|
55 using boost::math::tr1::cyl_bessel_i;
|
Chris@16
|
56 using boost::math::tr1::cyl_bessel_if;
|
Chris@16
|
57 using boost::math::tr1::cyl_bessel_il;
|
Chris@16
|
58 // [5.2.1.9] cylindrical Bessel functions (of the first kind):
|
Chris@16
|
59 using boost::math::tr1::cyl_bessel_j;
|
Chris@16
|
60 using boost::math::tr1::cyl_bessel_jf;
|
Chris@16
|
61 using boost::math::tr1::cyl_bessel_jl;
|
Chris@16
|
62 // [5.2.1.10] irregular modified cylindrical Bessel functions:
|
Chris@16
|
63 using boost::math::tr1::cyl_bessel_k;
|
Chris@16
|
64 using boost::math::tr1::cyl_bessel_kf;
|
Chris@16
|
65 using boost::math::tr1::cyl_bessel_kl;
|
Chris@16
|
66 // [5.2.1.11] cylindrical Neumann functions;
|
Chris@16
|
67 // cylindrical Bessel functions (of the second kind):
|
Chris@16
|
68 using boost::math::tr1::cyl_neumann;
|
Chris@16
|
69 using boost::math::tr1::cyl_neumannf;
|
Chris@16
|
70 using boost::math::tr1::cyl_neumannl;
|
Chris@16
|
71 // [5.2.1.12] (incomplete) elliptic integral of the first kind:
|
Chris@16
|
72 using boost::math::tr1::ellint_1;
|
Chris@16
|
73 using boost::math::tr1::ellint_1f;
|
Chris@16
|
74 using boost::math::tr1::ellint_1l;
|
Chris@16
|
75 // [5.2.1.13] (incomplete) elliptic integral of the second kind:
|
Chris@16
|
76 using boost::math::tr1::ellint_2;
|
Chris@16
|
77 using boost::math::tr1::ellint_2f;
|
Chris@16
|
78 using boost::math::tr1::ellint_2l;
|
Chris@16
|
79 // [5.2.1.14] (incomplete) elliptic integral of the third kind:
|
Chris@16
|
80 using boost::math::tr1::ellint_3;
|
Chris@16
|
81 using boost::math::tr1::ellint_3f;
|
Chris@16
|
82 using boost::math::tr1::ellint_3l;
|
Chris@16
|
83 // [5.2.1.15] exponential integral:
|
Chris@16
|
84 using boost::math::tr1::expint;
|
Chris@16
|
85 using boost::math::tr1::expintf;
|
Chris@16
|
86 using boost::math::tr1::expintl;
|
Chris@16
|
87 // [5.2.1.16] Hermite polynomials:
|
Chris@16
|
88 using boost::math::tr1::hermite;
|
Chris@16
|
89 using boost::math::tr1::hermitef;
|
Chris@16
|
90 using boost::math::tr1::hermitel;
|
Chris@16
|
91 #if 0
|
Chris@16
|
92 // [5.2.1.17] hypergeometric functions:
|
Chris@16
|
93 using boost::math::tr1::hyperg;
|
Chris@16
|
94 using boost::math::tr1::hypergf;
|
Chris@16
|
95 using boost::math::tr1::hypergl;
|
Chris@16
|
96 #endif
|
Chris@16
|
97 // [5.2.1.18] Laguerre polynomials:
|
Chris@16
|
98 using boost::math::tr1::laguerre;
|
Chris@16
|
99 using boost::math::tr1::laguerref;
|
Chris@16
|
100 using boost::math::tr1::laguerrel;
|
Chris@16
|
101 // [5.2.1.19] Legendre polynomials:
|
Chris@16
|
102 using boost::math::tr1::legendre;
|
Chris@16
|
103 using boost::math::tr1::legendref;
|
Chris@16
|
104 using boost::math::tr1::legendrel;
|
Chris@16
|
105 // [5.2.1.20] Riemann zeta function:
|
Chris@16
|
106 using boost::math::tr1::riemann_zeta;
|
Chris@16
|
107 using boost::math::tr1::riemann_zetaf;
|
Chris@16
|
108 using boost::math::tr1::riemann_zetal;
|
Chris@16
|
109 // [5.2.1.21] spherical Bessel functions (of the first kind):
|
Chris@16
|
110 using boost::math::tr1::sph_bessel;
|
Chris@16
|
111 using boost::math::tr1::sph_besself;
|
Chris@16
|
112 using boost::math::tr1::sph_bessell;
|
Chris@16
|
113 // [5.2.1.22] spherical associated Legendre functions:
|
Chris@16
|
114 using boost::math::tr1::sph_legendre;
|
Chris@16
|
115 using boost::math::tr1::sph_legendref;
|
Chris@16
|
116 using boost::math::tr1::sph_legendrel;
|
Chris@16
|
117 // [5.2.1.23] spherical Neumann functions;
|
Chris@16
|
118 // spherical Bessel functions (of the second kind):
|
Chris@16
|
119 using boost::math::tr1::sph_neumann;
|
Chris@16
|
120 using boost::math::tr1::sph_neumannf;
|
Chris@16
|
121 using boost::math::tr1::sph_neumannl;
|
Chris@16
|
122
|
Chris@16
|
123 // types
|
Chris@16
|
124 using boost::math::tr1::double_t;
|
Chris@16
|
125 using boost::math::tr1::float_t;
|
Chris@16
|
126 // functions
|
Chris@16
|
127 using boost::math::tr1::acosh;
|
Chris@16
|
128 using boost::math::tr1::acoshf;
|
Chris@16
|
129 using boost::math::tr1::acoshl;
|
Chris@16
|
130 using boost::math::tr1::asinh;
|
Chris@16
|
131 using boost::math::tr1::asinhf;
|
Chris@16
|
132 using boost::math::tr1::asinhl;
|
Chris@16
|
133 using boost::math::tr1::atanh;
|
Chris@16
|
134 using boost::math::tr1::atanhf;
|
Chris@16
|
135 using boost::math::tr1::atanhl;
|
Chris@16
|
136 using boost::math::tr1::cbrt;
|
Chris@16
|
137 using boost::math::tr1::cbrtf;
|
Chris@16
|
138 using boost::math::tr1::cbrtl;
|
Chris@16
|
139 using boost::math::tr1::copysign;
|
Chris@16
|
140 using boost::math::tr1::copysignf;
|
Chris@16
|
141 using boost::math::tr1::copysignl;
|
Chris@16
|
142 using boost::math::tr1::erf;
|
Chris@16
|
143 using boost::math::tr1::erff;
|
Chris@16
|
144 using boost::math::tr1::erfl;
|
Chris@16
|
145 using boost::math::tr1::erfc;
|
Chris@16
|
146 using boost::math::tr1::erfcf;
|
Chris@16
|
147 using boost::math::tr1::erfcl;
|
Chris@16
|
148 #if 0
|
Chris@16
|
149 using boost::math::tr1::exp2;
|
Chris@16
|
150 using boost::math::tr1::exp2f;
|
Chris@16
|
151 using boost::math::tr1::exp2l;
|
Chris@16
|
152 #endif
|
Chris@16
|
153 using boost::math::tr1::expm1;
|
Chris@16
|
154 using boost::math::tr1::expm1f;
|
Chris@16
|
155 using boost::math::tr1::expm1l;
|
Chris@16
|
156 #if 0
|
Chris@16
|
157 using boost::math::tr1::fdim;
|
Chris@16
|
158 using boost::math::tr1::fdimf;
|
Chris@16
|
159 using boost::math::tr1::fdiml;
|
Chris@16
|
160 using boost::math::tr1::fma;
|
Chris@16
|
161 using boost::math::tr1::fmaf;
|
Chris@16
|
162 using boost::math::tr1::fmal;
|
Chris@16
|
163 #endif
|
Chris@16
|
164 using boost::math::tr1::fmax;
|
Chris@16
|
165 using boost::math::tr1::fmaxf;
|
Chris@16
|
166 using boost::math::tr1::fmaxl;
|
Chris@16
|
167 using boost::math::tr1::fmin;
|
Chris@16
|
168 using boost::math::tr1::fminf;
|
Chris@16
|
169 using boost::math::tr1::fminl;
|
Chris@16
|
170 using boost::math::tr1::hypot;
|
Chris@16
|
171 using boost::math::tr1::hypotf;
|
Chris@16
|
172 using boost::math::tr1::hypotl;
|
Chris@16
|
173 #if 0
|
Chris@16
|
174 using boost::math::tr1::ilogb;
|
Chris@16
|
175 using boost::math::tr1::ilogbf;
|
Chris@16
|
176 using boost::math::tr1::ilogbl;
|
Chris@16
|
177 #endif
|
Chris@16
|
178 using boost::math::tr1::lgamma;
|
Chris@16
|
179 using boost::math::tr1::lgammaf;
|
Chris@16
|
180 using boost::math::tr1::lgammal;
|
Chris@16
|
181 #if 0
|
Chris@16
|
182 using boost::math::tr1::llrint;
|
Chris@16
|
183 using boost::math::tr1::llrintf;
|
Chris@16
|
184 using boost::math::tr1::llrintl;
|
Chris@16
|
185 #endif
|
Chris@16
|
186 using boost::math::tr1::llround;
|
Chris@16
|
187 using boost::math::tr1::llroundf;
|
Chris@16
|
188 using boost::math::tr1::llroundl;
|
Chris@16
|
189 using boost::math::tr1::log1p;
|
Chris@16
|
190 using boost::math::tr1::log1pf;
|
Chris@16
|
191 using boost::math::tr1::log1pl;
|
Chris@16
|
192 #if 0
|
Chris@16
|
193 using boost::math::tr1::log2;
|
Chris@16
|
194 using boost::math::tr1::log2f;
|
Chris@16
|
195 using boost::math::tr1::log2l;
|
Chris@16
|
196 using boost::math::tr1::logb;
|
Chris@16
|
197 using boost::math::tr1::logbf;
|
Chris@16
|
198 using boost::math::tr1::logbl;
|
Chris@16
|
199 using boost::math::tr1::lrint;
|
Chris@16
|
200 using boost::math::tr1::lrintf;
|
Chris@16
|
201 using boost::math::tr1::lrintl;
|
Chris@16
|
202 #endif
|
Chris@16
|
203 using boost::math::tr1::lround;
|
Chris@16
|
204 using boost::math::tr1::lroundf;
|
Chris@16
|
205 using boost::math::tr1::lroundl;
|
Chris@16
|
206 #if 0
|
Chris@16
|
207 using boost::math::tr1::nan;
|
Chris@16
|
208 using boost::math::tr1::nanf;
|
Chris@16
|
209 using boost::math::tr1::nanl;
|
Chris@16
|
210 using boost::math::tr1::nearbyint;
|
Chris@16
|
211 using boost::math::tr1::nearbyintf;
|
Chris@16
|
212 using boost::math::tr1::nearbyintl;
|
Chris@16
|
213 #endif
|
Chris@16
|
214 using boost::math::tr1::nextafter;
|
Chris@16
|
215 using boost::math::tr1::nextafterf;
|
Chris@16
|
216 using boost::math::tr1::nextafterl;
|
Chris@16
|
217 using boost::math::tr1::nexttoward;
|
Chris@16
|
218 using boost::math::tr1::nexttowardf;
|
Chris@16
|
219 using boost::math::tr1::nexttowardl;
|
Chris@16
|
220 #if 0
|
Chris@16
|
221 using boost::math::tr1::remainder;
|
Chris@16
|
222 using boost::math::tr1::remainderf;
|
Chris@16
|
223 using boost::math::tr1::remainderl;
|
Chris@16
|
224 using boost::math::tr1::remquo;
|
Chris@16
|
225 using boost::math::tr1::remquof;
|
Chris@16
|
226 using boost::math::tr1::remquol;
|
Chris@16
|
227 using boost::math::tr1::rint;
|
Chris@16
|
228 using boost::math::tr1::rintf;
|
Chris@16
|
229 using boost::math::tr1::rintl;
|
Chris@16
|
230 #endif
|
Chris@16
|
231 using boost::math::tr1::round;
|
Chris@16
|
232 using boost::math::tr1::roundf;
|
Chris@16
|
233 using boost::math::tr1::roundl;
|
Chris@16
|
234 #if 0
|
Chris@16
|
235 using boost::math::tr1::scalbln;
|
Chris@16
|
236 using boost::math::tr1::scalblnf;
|
Chris@16
|
237 using boost::math::tr1::scalblnl;
|
Chris@16
|
238 using boost::math::tr1::scalbn;
|
Chris@16
|
239 using boost::math::tr1::scalbnf;
|
Chris@16
|
240 using boost::math::tr1::scalbnl;
|
Chris@16
|
241 #endif
|
Chris@16
|
242 using boost::math::tr1::tgamma;
|
Chris@16
|
243 using boost::math::tr1::tgammaf;
|
Chris@16
|
244 using boost::math::tr1::tgammal;
|
Chris@16
|
245 using boost::math::tr1::trunc;
|
Chris@16
|
246 using boost::math::tr1::truncf;
|
Chris@16
|
247 using boost::math::tr1::truncl;
|
Chris@16
|
248 // C99 macros defined as C++ templates
|
Chris@16
|
249 using boost::math::tr1::signbit;
|
Chris@16
|
250 using boost::math::tr1::fpclassify;
|
Chris@16
|
251 using boost::math::tr1::isfinite;
|
Chris@16
|
252 using boost::math::tr1::isinf;
|
Chris@16
|
253 using boost::math::tr1::isnan;
|
Chris@16
|
254 using boost::math::tr1::isnormal;
|
Chris@16
|
255 #if 0
|
Chris@16
|
256 using boost::math::tr1::isgreater;
|
Chris@16
|
257 using boost::math::tr1::isgreaterequal;
|
Chris@16
|
258 using boost::math::tr1::isless;
|
Chris@16
|
259 using boost::math::tr1::islessequal;
|
Chris@16
|
260 using boost::math::tr1::islessgreater;
|
Chris@16
|
261 using boost::math::tr1::isunordered;
|
Chris@16
|
262 #endif
|
Chris@16
|
263 } } // namespaces
|
Chris@16
|
264
|
Chris@16
|
265 #endif // BOOST_HAS_TR1_CMATH
|
Chris@16
|
266
|
Chris@16
|
267 #endif // BOOST_TR1_CMATH_HPP_INCLUDED
|