Apply patch for [CVE-2012-2677][boost] ordered_malloc() overflow
[external/boost.git] / boost / math / tr1.hpp
1 // Copyright John Maddock 2008.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt
5 // or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 #ifndef BOOST_MATH_TR1_HPP
8 #define BOOST_MATH_TR1_HPP
9
10 #ifdef _MSC_VER
11 #pragma once
12 #endif
13
14 #include <math.h> // So we can check which std C lib we're using
15
16 #ifdef __cplusplus
17
18 #include <boost/config.hpp>
19 #include <boost/static_assert.hpp>
20
21 namespace boost{ namespace math{ namespace tr1{ extern "C"{
22
23 #else
24
25 #define BOOST_PREVENT_MACRO_SUBSTITUTION /**/
26
27 #endif // __cplusplus
28
29 // we need to import/export our code only if the user has specifically
30 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
31 // libraries to be dynamically linked, or BOOST_MATH_TR1_DYN_LINK
32 // if they want just this one to be dynamically liked:
33 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_MATH_TR1_DYN_LINK)
34 // export if this is our own source, otherwise import:
35 #ifdef BOOST_MATH_TR1_SOURCE
36 # define BOOST_MATH_TR1_DECL BOOST_SYMBOL_EXPORT
37 #else
38 # define BOOST_MATH_TR1_DECL BOOST_SYMBOL_IMPORT
39 #endif  // BOOST_MATH_TR1_SOURCE
40 #else
41 #  define BOOST_MATH_TR1_DECL
42 #endif  // DYN_LINK
43 //
44 // Set any throw specifications on the C99 extern "C" functions - these have to be
45 // the same as used in the std lib if any.
46 //
47 #if defined(__GLIBC__) && defined(__THROW)
48 #  define BOOST_MATH_C99_THROW_SPEC __THROW
49 #else
50 #  define BOOST_MATH_C99_THROW_SPEC
51 #endif
52
53 //
54 // Now set up the libraries to link against:
55 //
56 #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
57    && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
58 #  define BOOST_LIB_NAME boost_math_c99
59 #  if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
60 #     define BOOST_DYN_LINK
61 #  endif
62 #  include <boost/config/auto_link.hpp>
63 #endif
64 #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
65    && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
66 #  define BOOST_LIB_NAME boost_math_c99f
67 #  if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
68 #     define BOOST_DYN_LINK
69 #  endif
70 #  include <boost/config/auto_link.hpp>
71 #endif
72 #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
73    && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus) \
74    && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
75 #  define BOOST_LIB_NAME boost_math_c99l
76 #  if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
77 #     define BOOST_DYN_LINK
78 #  endif
79 #  include <boost/config/auto_link.hpp>
80 #endif
81 #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
82    && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
83 #  define BOOST_LIB_NAME boost_math_tr1
84 #  if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
85 #     define BOOST_DYN_LINK
86 #  endif
87 #  include <boost/config/auto_link.hpp>
88 #endif
89 #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
90    && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
91 #  define BOOST_LIB_NAME boost_math_tr1f
92 #  if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
93 #     define BOOST_DYN_LINK
94 #  endif
95 #  include <boost/config/auto_link.hpp>
96 #endif
97 #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
98    && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus) \
99    && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
100 #  define BOOST_LIB_NAME boost_math_tr1l
101 #  if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
102 #     define BOOST_DYN_LINK
103 #  endif
104 #  include <boost/config/auto_link.hpp>
105 #endif
106
107 #ifndef FLT_EVAL_METHOD
108 typedef float float_t;
109 typedef double double_t;
110 #elif FLT_EVAL_METHOD == 0
111 typedef float float_t;
112 typedef double double_t;
113 #elif FLT_EVAL_METHOD == 1
114 typedef double float_t;
115 typedef double double_t;
116 #else
117 typedef long double float_t;
118 typedef long double double_t;
119 #endif
120
121 // C99 Functions:
122 double BOOST_MATH_TR1_DECL boost_acosh BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
123 float BOOST_MATH_TR1_DECL boost_acoshf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
124 long double BOOST_MATH_TR1_DECL boost_acoshl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
125
126 double BOOST_MATH_TR1_DECL boost_asinh BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
127 float BOOST_MATH_TR1_DECL boost_asinhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
128 long double BOOST_MATH_TR1_DECL boost_asinhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
129
130 double BOOST_MATH_TR1_DECL boost_atanh BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
131 float BOOST_MATH_TR1_DECL boost_atanhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
132 long double BOOST_MATH_TR1_DECL boost_atanhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
133
134 double BOOST_MATH_TR1_DECL boost_cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
135 float BOOST_MATH_TR1_DECL boost_cbrtf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
136 long double BOOST_MATH_TR1_DECL boost_cbrtl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
137
138 double BOOST_MATH_TR1_DECL boost_copysign BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
139 float BOOST_MATH_TR1_DECL boost_copysignf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
140 long double BOOST_MATH_TR1_DECL boost_copysignl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
141
142 double BOOST_MATH_TR1_DECL boost_erf BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
143 float BOOST_MATH_TR1_DECL boost_erff BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
144 long double BOOST_MATH_TR1_DECL boost_erfl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
145
146 double BOOST_MATH_TR1_DECL boost_erfc BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
147 float BOOST_MATH_TR1_DECL boost_erfcf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
148 long double BOOST_MATH_TR1_DECL boost_erfcl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
149 #if 0
150 double BOOST_MATH_TR1_DECL boost_exp2 BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
151 float BOOST_MATH_TR1_DECL boost_exp2f BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
152 long double BOOST_MATH_TR1_DECL boost_exp2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
153 #endif
154 double BOOST_MATH_TR1_DECL boost_expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
155 float BOOST_MATH_TR1_DECL boost_expm1f BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
156 long double BOOST_MATH_TR1_DECL boost_expm1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
157 #if 0
158 double BOOST_MATH_TR1_DECL boost_fdim BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
159 float BOOST_MATH_TR1_DECL boost_fdimf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
160 long double BOOST_MATH_TR1_DECL boost_fdiml BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
161 double BOOST_MATH_TR1_DECL boost_fma BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y, double z) BOOST_MATH_C99_THROW_SPEC;
162 float BOOST_MATH_TR1_DECL boost_fmaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y, float z) BOOST_MATH_C99_THROW_SPEC;
163 long double BOOST_MATH_TR1_DECL boost_fmal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y, long double z) BOOST_MATH_C99_THROW_SPEC;
164 #endif
165 double BOOST_MATH_TR1_DECL boost_fmax BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
166 float BOOST_MATH_TR1_DECL boost_fmaxf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
167 long double BOOST_MATH_TR1_DECL boost_fmaxl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
168
169 double BOOST_MATH_TR1_DECL boost_fmin BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
170 float BOOST_MATH_TR1_DECL boost_fminf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
171 long double BOOST_MATH_TR1_DECL boost_fminl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
172
173 double BOOST_MATH_TR1_DECL boost_hypot BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
174 float BOOST_MATH_TR1_DECL boost_hypotf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
175 long double BOOST_MATH_TR1_DECL boost_hypotl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
176 #if 0
177 int BOOST_MATH_TR1_DECL boost_ilogb BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
178 int BOOST_MATH_TR1_DECL boost_ilogbf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
179 int BOOST_MATH_TR1_DECL boost_ilogbl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
180 #endif
181 double BOOST_MATH_TR1_DECL boost_lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
182 float BOOST_MATH_TR1_DECL boost_lgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
183 long double BOOST_MATH_TR1_DECL boost_lgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
184 #ifdef BOOST_HAS_LONG_LONG
185 #if 0
186 ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llrint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
187 ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llrintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
188 ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llrintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
189 #endif
190 ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llround BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
191 ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
192 ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
193 #endif
194 double BOOST_MATH_TR1_DECL boost_log1p BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
195 float BOOST_MATH_TR1_DECL boost_log1pf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
196 long double BOOST_MATH_TR1_DECL boost_log1pl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
197 #if 0
198 double BOOST_MATH_TR1_DECL log2 BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
199 float BOOST_MATH_TR1_DECL log2f BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
200 long double BOOST_MATH_TR1_DECL log2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
201
202 double BOOST_MATH_TR1_DECL logb BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
203 float BOOST_MATH_TR1_DECL logbf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
204 long double BOOST_MATH_TR1_DECL logbl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
205 long BOOST_MATH_TR1_DECL lrint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
206 long BOOST_MATH_TR1_DECL lrintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
207 long BOOST_MATH_TR1_DECL lrintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
208 #endif
209 long BOOST_MATH_TR1_DECL boost_lround BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
210 long BOOST_MATH_TR1_DECL boost_lroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
211 long BOOST_MATH_TR1_DECL boost_lroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
212 #if 0
213 double BOOST_MATH_TR1_DECL nan BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str) BOOST_MATH_C99_THROW_SPEC;
214 float BOOST_MATH_TR1_DECL nanf BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str) BOOST_MATH_C99_THROW_SPEC;
215 long double BOOST_MATH_TR1_DECL nanl BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str) BOOST_MATH_C99_THROW_SPEC;
216 double BOOST_MATH_TR1_DECL nearbyint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
217 float BOOST_MATH_TR1_DECL nearbyintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
218 long double BOOST_MATH_TR1_DECL nearbyintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
219 #endif
220 double BOOST_MATH_TR1_DECL boost_nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
221 float BOOST_MATH_TR1_DECL boost_nextafterf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
222 long double BOOST_MATH_TR1_DECL boost_nextafterl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
223
224 double BOOST_MATH_TR1_DECL boost_nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(double x, long double y) BOOST_MATH_C99_THROW_SPEC;
225 float BOOST_MATH_TR1_DECL boost_nexttowardf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, long double y) BOOST_MATH_C99_THROW_SPEC;
226 long double BOOST_MATH_TR1_DECL boost_nexttowardl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
227 #if 0
228 double BOOST_MATH_TR1_DECL boost_remainder BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
229 float BOOST_MATH_TR1_DECL boost_remainderf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
230 long double BOOST_MATH_TR1_DECL boost_remainderl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
231 double BOOST_MATH_TR1_DECL boost_remquo BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y, int *pquo) BOOST_MATH_C99_THROW_SPEC;
232 float BOOST_MATH_TR1_DECL boost_remquof BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y, int *pquo) BOOST_MATH_C99_THROW_SPEC;
233 long double BOOST_MATH_TR1_DECL boost_remquol BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y, int *pquo) BOOST_MATH_C99_THROW_SPEC;
234 double BOOST_MATH_TR1_DECL boost_rint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
235 float BOOST_MATH_TR1_DECL boost_rintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
236 long double BOOST_MATH_TR1_DECL boost_rintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
237 #endif
238 double BOOST_MATH_TR1_DECL boost_round BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
239 float BOOST_MATH_TR1_DECL boost_roundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
240 long double BOOST_MATH_TR1_DECL boost_roundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
241 #if 0
242 double BOOST_MATH_TR1_DECL boost_scalbln BOOST_PREVENT_MACRO_SUBSTITUTION(double x, long ex) BOOST_MATH_C99_THROW_SPEC;
243 float BOOST_MATH_TR1_DECL boost_scalblnf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, long ex) BOOST_MATH_C99_THROW_SPEC;
244 long double BOOST_MATH_TR1_DECL boost_scalblnl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long ex) BOOST_MATH_C99_THROW_SPEC;
245 double BOOST_MATH_TR1_DECL boost_scalbn BOOST_PREVENT_MACRO_SUBSTITUTION(double x, int ex) BOOST_MATH_C99_THROW_SPEC;
246 float BOOST_MATH_TR1_DECL boost_scalbnf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, int ex) BOOST_MATH_C99_THROW_SPEC;
247 long double BOOST_MATH_TR1_DECL boost_scalbnl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, int ex) BOOST_MATH_C99_THROW_SPEC;
248 #endif
249 double BOOST_MATH_TR1_DECL boost_tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
250 float BOOST_MATH_TR1_DECL boost_tgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
251 long double BOOST_MATH_TR1_DECL boost_tgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
252
253 double BOOST_MATH_TR1_DECL boost_trunc BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
254 float BOOST_MATH_TR1_DECL boost_truncf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
255 long double BOOST_MATH_TR1_DECL boost_truncl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
256
257 // [5.2.1.1] associated Laguerre polynomials:
258 double BOOST_MATH_TR1_DECL boost_assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, double x) BOOST_MATH_C99_THROW_SPEC;
259 float BOOST_MATH_TR1_DECL boost_assoc_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, float x) BOOST_MATH_C99_THROW_SPEC;
260 long double BOOST_MATH_TR1_DECL boost_assoc_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, long double x) BOOST_MATH_C99_THROW_SPEC;
261
262 // [5.2.1.2] associated Legendre functions:
263 double BOOST_MATH_TR1_DECL boost_assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, double x) BOOST_MATH_C99_THROW_SPEC;
264 float BOOST_MATH_TR1_DECL boost_assoc_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float x) BOOST_MATH_C99_THROW_SPEC;
265 long double BOOST_MATH_TR1_DECL boost_assoc_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double x) BOOST_MATH_C99_THROW_SPEC;
266
267 // [5.2.1.3] beta function:
268 double BOOST_MATH_TR1_DECL boost_beta BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
269 float BOOST_MATH_TR1_DECL boost_betaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
270 long double BOOST_MATH_TR1_DECL boost_betal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
271
272 // [5.2.1.4] (complete) elliptic integral of the first kind:
273 double BOOST_MATH_TR1_DECL boost_comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double k) BOOST_MATH_C99_THROW_SPEC;
274 float BOOST_MATH_TR1_DECL boost_comp_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float k) BOOST_MATH_C99_THROW_SPEC;
275 long double BOOST_MATH_TR1_DECL boost_comp_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k) BOOST_MATH_C99_THROW_SPEC;
276
277 // [5.2.1.5] (complete) elliptic integral of the second kind:
278 double BOOST_MATH_TR1_DECL boost_comp_ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(double k) BOOST_MATH_C99_THROW_SPEC;
279 float BOOST_MATH_TR1_DECL boost_comp_ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(float k) BOOST_MATH_C99_THROW_SPEC;
280 long double BOOST_MATH_TR1_DECL boost_comp_ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k) BOOST_MATH_C99_THROW_SPEC;
281
282 // [5.2.1.6] (complete) elliptic integral of the third kind:
283 double BOOST_MATH_TR1_DECL boost_comp_ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double nu) BOOST_MATH_C99_THROW_SPEC;
284 float BOOST_MATH_TR1_DECL boost_comp_ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu) BOOST_MATH_C99_THROW_SPEC;
285 long double BOOST_MATH_TR1_DECL boost_comp_ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double nu) BOOST_MATH_C99_THROW_SPEC;
286 #if 0
287 // [5.2.1.7] confluent hypergeometric functions:
288 double BOOST_MATH_TR1_DECL conf_hyperg BOOST_PREVENT_MACRO_SUBSTITUTION(double a, double c, double x) BOOST_MATH_C99_THROW_SPEC;
289 float BOOST_MATH_TR1_DECL conf_hypergf BOOST_PREVENT_MACRO_SUBSTITUTION(float a, float c, float x) BOOST_MATH_C99_THROW_SPEC;
290 long double BOOST_MATH_TR1_DECL conf_hypergl BOOST_PREVENT_MACRO_SUBSTITUTION(long double a, long double c, long double x) BOOST_MATH_C99_THROW_SPEC;
291 #endif
292 // [5.2.1.8] regular modified cylindrical Bessel functions:
293 double BOOST_MATH_TR1_DECL boost_cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC;
294 float BOOST_MATH_TR1_DECL boost_cyl_bessel_if BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC;
295 long double BOOST_MATH_TR1_DECL boost_cyl_bessel_il BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x) BOOST_MATH_C99_THROW_SPEC;
296
297 // [5.2.1.9] cylindrical Bessel functions (of the first kind):
298 double BOOST_MATH_TR1_DECL boost_cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC;
299 float BOOST_MATH_TR1_DECL boost_cyl_bessel_jf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC;
300 long double BOOST_MATH_TR1_DECL boost_cyl_bessel_jl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x) BOOST_MATH_C99_THROW_SPEC;
301
302 // [5.2.1.10] irregular modified cylindrical Bessel functions:
303 double BOOST_MATH_TR1_DECL boost_cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC;
304 float BOOST_MATH_TR1_DECL boost_cyl_bessel_kf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC;
305 long double BOOST_MATH_TR1_DECL boost_cyl_bessel_kl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x) BOOST_MATH_C99_THROW_SPEC;
306
307 // [5.2.1.11] cylindrical Neumann functions BOOST_MATH_C99_THROW_SPEC;
308 // cylindrical Bessel functions (of the second kind):
309 double BOOST_MATH_TR1_DECL boost_cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC;
310 float BOOST_MATH_TR1_DECL boost_cyl_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC;
311 long double BOOST_MATH_TR1_DECL boost_cyl_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x) BOOST_MATH_C99_THROW_SPEC;
312
313 // [5.2.1.12] (incomplete) elliptic integral of the first kind:
314 double BOOST_MATH_TR1_DECL boost_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi) BOOST_MATH_C99_THROW_SPEC;
315 float BOOST_MATH_TR1_DECL boost_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi) BOOST_MATH_C99_THROW_SPEC;
316 long double BOOST_MATH_TR1_DECL boost_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi) BOOST_MATH_C99_THROW_SPEC;
317
318 // [5.2.1.13] (incomplete) elliptic integral of the second kind:
319 double BOOST_MATH_TR1_DECL boost_ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi) BOOST_MATH_C99_THROW_SPEC;
320 float BOOST_MATH_TR1_DECL boost_ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi) BOOST_MATH_C99_THROW_SPEC;
321 long double BOOST_MATH_TR1_DECL boost_ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi) BOOST_MATH_C99_THROW_SPEC;
322
323 // [5.2.1.14] (incomplete) elliptic integral of the third kind:
324 double BOOST_MATH_TR1_DECL boost_ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double nu, double phi) BOOST_MATH_C99_THROW_SPEC;
325 float BOOST_MATH_TR1_DECL boost_ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu, float phi) BOOST_MATH_C99_THROW_SPEC;
326 long double BOOST_MATH_TR1_DECL boost_ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double nu, long double phi) BOOST_MATH_C99_THROW_SPEC;
327
328 // [5.2.1.15] exponential integral:
329 double BOOST_MATH_TR1_DECL boost_expint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
330 float BOOST_MATH_TR1_DECL boost_expintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
331 long double BOOST_MATH_TR1_DECL boost_expintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
332
333 // [5.2.1.16] Hermite polynomials:
334 double BOOST_MATH_TR1_DECL boost_hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC;
335 float BOOST_MATH_TR1_DECL boost_hermitef BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC;
336 long double BOOST_MATH_TR1_DECL boost_hermitel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC;
337
338 #if 0
339 // [5.2.1.17] hypergeometric functions:
340 double BOOST_MATH_TR1_DECL hyperg BOOST_PREVENT_MACRO_SUBSTITUTION(double a, double b, double c, double x) BOOST_MATH_C99_THROW_SPEC;
341 float BOOST_MATH_TR1_DECL hypergf BOOST_PREVENT_MACRO_SUBSTITUTION(float a, float b, float c, float x) BOOST_MATH_C99_THROW_SPEC;
342 long double BOOST_MATH_TR1_DECL hypergl BOOST_PREVENT_MACRO_SUBSTITUTION(long double a, long double b, long double c,
343 long double x) BOOST_MATH_C99_THROW_SPEC;
344 #endif
345
346 // [5.2.1.18] Laguerre polynomials:
347 double BOOST_MATH_TR1_DECL boost_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC;
348 float BOOST_MATH_TR1_DECL boost_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC;
349 long double BOOST_MATH_TR1_DECL boost_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC;
350
351 // [5.2.1.19] Legendre polynomials:
352 double BOOST_MATH_TR1_DECL boost_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, double x) BOOST_MATH_C99_THROW_SPEC;
353 float BOOST_MATH_TR1_DECL boost_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, float x) BOOST_MATH_C99_THROW_SPEC;
354 long double BOOST_MATH_TR1_DECL boost_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, long double x) BOOST_MATH_C99_THROW_SPEC;
355
356 // [5.2.1.20] Riemann zeta function:
357 double BOOST_MATH_TR1_DECL boost_riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(double) BOOST_MATH_C99_THROW_SPEC;
358 float BOOST_MATH_TR1_DECL boost_riemann_zetaf BOOST_PREVENT_MACRO_SUBSTITUTION(float) BOOST_MATH_C99_THROW_SPEC;
359 long double BOOST_MATH_TR1_DECL boost_riemann_zetal BOOST_PREVENT_MACRO_SUBSTITUTION(long double) BOOST_MATH_C99_THROW_SPEC;
360
361 // [5.2.1.21] spherical Bessel functions (of the first kind):
362 double BOOST_MATH_TR1_DECL boost_sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC;
363 float BOOST_MATH_TR1_DECL boost_sph_besself BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC;
364 long double BOOST_MATH_TR1_DECL boost_sph_bessell BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC;
365
366 // [5.2.1.22] spherical associated Legendre functions:
367 double BOOST_MATH_TR1_DECL boost_sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, double theta) BOOST_MATH_C99_THROW_SPEC;
368 float BOOST_MATH_TR1_DECL boost_sph_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float theta) BOOST_MATH_C99_THROW_SPEC;
369 long double BOOST_MATH_TR1_DECL boost_sph_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double theta) BOOST_MATH_C99_THROW_SPEC;
370
371 // [5.2.1.23] spherical Neumann functions BOOST_MATH_C99_THROW_SPEC;
372 // spherical Bessel functions (of the second kind):
373 double BOOST_MATH_TR1_DECL boost_sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC;
374 float BOOST_MATH_TR1_DECL boost_sph_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC;
375 long double BOOST_MATH_TR1_DECL boost_sph_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC;
376
377 #ifdef __cplusplus
378
379 }}}}  // namespaces
380
381 #include <boost/math/tools/promotion.hpp>
382
383 namespace boost{ namespace math{ namespace tr1{
384 //
385 // Declare overload of the functions which forward to the
386 // C interfaces:
387 //
388 // C99 Functions:
389 inline double acosh BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
390 { return boost::math::tr1::boost_acosh BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
391 inline float acoshf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
392 { return boost::math::tr1::boost_acoshf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
393 inline long double acoshl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
394 { return boost::math::tr1::boost_acoshl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
395 inline float acosh BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
396 { return boost::math::tr1::acoshf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
397 inline long double acosh BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
398 { return boost::math::tr1::acoshl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
399 template <class T>
400 inline typename tools::promote_args<T>::type acosh BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
401 { return boost::math::tr1::acosh BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
402
403 inline double asinh BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
404 { return boost::math::tr1::boost_asinh BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
405 inline float asinhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
406 { return boost::math::tr1::boost_asinhf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
407 inline long double asinhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
408 { return boost::math::tr1::boost_asinhl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
409 inline float asinh BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
410 { return boost::math::tr1::asinhf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
411 inline long double asinh BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
412 { return boost::math::tr1::asinhl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
413 template <class T>
414 inline typename tools::promote_args<T>::type asinh BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
415 { return boost::math::tr1::asinh BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
416
417 inline double atanh BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
418 { return boost::math::tr1::boost_atanh BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
419 inline float atanhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
420 { return boost::math::tr1::boost_atanhf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
421 inline long double atanhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
422 { return boost::math::tr1::boost_atanhl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
423 inline float atanh BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
424 { return boost::math::tr1::atanhf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
425 inline long double atanh BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
426 { return boost::math::tr1::atanhl(x); }
427 template <class T>
428 inline typename tools::promote_args<T>::type atanh BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
429 { return boost::math::tr1::atanh BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
430
431 inline double cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
432 { return boost::math::tr1::boost_cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
433 inline float cbrtf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
434 { return boost::math::tr1::boost_cbrtf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
435 inline long double cbrtl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
436 { return boost::math::tr1::boost_cbrtl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
437 inline float cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
438 { return boost::math::tr1::cbrtf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
439 inline long double cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
440 { return boost::math::tr1::cbrtl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
441 template <class T>
442 inline typename tools::promote_args<T>::type cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
443 { return boost::math::tr1::cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
444
445 inline double copysign BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
446 { return boost::math::tr1::boost_copysign BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
447 inline float copysignf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
448 { return boost::math::tr1::boost_copysignf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
449 inline long double copysignl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
450 { return boost::math::tr1::boost_copysignl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
451 inline float copysign BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
452 { return boost::math::tr1::copysignf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
453 inline long double copysign BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
454 { return boost::math::tr1::copysignl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
455 template <class T1, class T2>
456 inline typename tools::promote_args<T1, T2>::type copysign BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
457 { return boost::math::tr1::copysign BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(x), static_cast<typename tools::promote_args<T1, T2>::type>(y)); }
458
459 inline double erf BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
460 { return boost::math::tr1::boost_erf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
461 inline float erff BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
462 { return boost::math::tr1::boost_erff BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
463 inline long double erfl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
464 { return boost::math::tr1::boost_erfl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
465 inline float erf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
466 { return boost::math::tr1::erff BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
467 inline long double erf BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
468 { return boost::math::tr1::erfl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
469 template <class T>
470 inline typename tools::promote_args<T>::type erf BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
471 { return boost::math::tr1::erf BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
472
473 inline double erfc BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
474 { return boost::math::tr1::boost_erfc BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
475 inline float erfcf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
476 { return boost::math::tr1::boost_erfcf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
477 inline long double erfcl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
478 { return boost::math::tr1::boost_erfcl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
479 inline float erfc BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
480 { return boost::math::tr1::erfcf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
481 inline long double erfc BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
482 { return boost::math::tr1::erfcl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
483 template <class T>
484 inline typename tools::promote_args<T>::type erfc BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
485 { return boost::math::tr1::erfc BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
486
487 #if 0
488 double exp2 BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
489 float exp2f BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
490 long double exp2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
491 #endif
492
493 inline float expm1f BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
494 { return boost::math::tr1::boost_expm1f BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
495 inline double expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
496 { return boost::math::tr1::boost_expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
497 inline long double expm1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
498 { return boost::math::tr1::boost_expm1l BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
499 inline float expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
500 { return boost::math::tr1::expm1f BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
501 inline long double expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
502 { return boost::math::tr1::expm1l BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
503 template <class T>
504 inline typename tools::promote_args<T>::type expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
505 { return boost::math::tr1::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
506
507 #if 0
508 double fdim BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y);
509 float fdimf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y);
510 long double fdiml BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y);
511 double fma BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y, double z);
512 float fmaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y, float z);
513 long double fmal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y, long double z);
514 #endif
515 inline double fmax BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
516 { return boost::math::tr1::boost_fmax BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
517 inline float fmaxf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
518 { return boost::math::tr1::boost_fmaxf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
519 inline long double fmaxl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
520 { return boost::math::tr1::boost_fmaxl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
521 inline float fmax BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
522 { return boost::math::tr1::fmaxf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
523 inline long double fmax BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
524 { return boost::math::tr1::fmaxl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
525 template <class T1, class T2>
526 inline typename tools::promote_args<T1, T2>::type fmax BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
527 { return boost::math::tr1::fmax BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(x), static_cast<typename tools::promote_args<T1, T2>::type>(y)); }
528
529 inline double fmin BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
530 { return boost::math::tr1::boost_fmin BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
531 inline float fminf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
532 { return boost::math::tr1::boost_fminf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
533 inline long double fminl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
534 { return boost::math::tr1::boost_fminl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
535 inline float fmin BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
536 { return boost::math::tr1::fminf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
537 inline long double fmin BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
538 { return boost::math::tr1::fminl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
539 template <class T1, class T2>
540 inline typename tools::promote_args<T1, T2>::type fmin BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
541 { return boost::math::tr1::fmin BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(x), static_cast<typename tools::promote_args<T1, T2>::type>(y)); }
542
543 inline float hypotf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
544 { return boost::math::tr1::boost_hypotf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
545 inline double hypot BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
546 { return boost::math::tr1::boost_hypot BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
547 inline long double hypotl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
548 { return boost::math::tr1::boost_hypotl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
549 inline float hypot BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
550 { return boost::math::tr1::hypotf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
551 inline long double hypot BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
552 { return boost::math::tr1::hypotl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
553 template <class T1, class T2>
554 inline typename tools::promote_args<T1, T2>::type hypot BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
555 { return boost::math::tr1::hypot BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(x), static_cast<typename tools::promote_args<T1, T2>::type>(y)); }
556
557 #if 0
558 int ilogb BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
559 int ilogbf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
560 int ilogbl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
561 #endif
562
563 inline float lgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
564 { return boost::math::tr1::boost_lgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
565 inline double lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
566 { return boost::math::tr1::boost_lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
567 inline long double lgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
568 { return boost::math::tr1::boost_lgammal BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
569 inline float lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
570 { return boost::math::tr1::lgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
571 inline long double lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
572 { return boost::math::tr1::lgammal BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
573 template <class T>
574 inline typename tools::promote_args<T>::type lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
575 { return boost::math::tr1::lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
576
577 #ifdef BOOST_HAS_LONG_LONG
578 #if 0
579 ::boost::long_long_type llrint BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
580 ::boost::long_long_type llrintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
581 ::boost::long_long_type llrintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
582 #endif
583
584 inline ::boost::long_long_type llroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
585 { return boost::math::tr1::boost_llroundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
586 inline ::boost::long_long_type llround BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
587 { return boost::math::tr1::boost_llround BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
588 inline ::boost::long_long_type llroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
589 { return boost::math::tr1::boost_llroundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
590 inline ::boost::long_long_type llround BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
591 { return boost::math::tr1::llroundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
592 inline ::boost::long_long_type llround BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
593 { return boost::math::tr1::llroundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
594 template <class T>
595 inline ::boost::long_long_type llround BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
596 { return llround BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<double>(x)); }
597 #endif
598
599 inline float log1pf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
600 { return boost::math::tr1::boost_log1pf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
601 inline double log1p BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
602 { return boost::math::tr1::boost_log1p BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
603 inline long double log1pl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
604 { return boost::math::tr1::boost_log1pl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
605 inline float log1p BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
606 { return boost::math::tr1::log1pf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
607 inline long double log1p BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
608 { return boost::math::tr1::log1pl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
609 template <class T>
610 inline typename tools::promote_args<T>::type log1p BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
611 { return boost::math::tr1::log1p BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
612 #if 0
613 double log2 BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
614 float log2f BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
615 long double log2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
616
617 double logb BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
618 float logbf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
619 long double logbl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
620 long lrint BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
621 long lrintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
622 long lrintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
623 #endif
624 inline long lroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
625 { return boost::math::tr1::boost_lroundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
626 inline long lround BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
627 { return boost::math::tr1::boost_lround BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
628 inline long lroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
629 { return boost::math::tr1::boost_lroundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
630 inline long lround BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
631 { return boost::math::tr1::lroundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
632 inline long lround BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
633 { return boost::math::tr1::lroundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
634 template <class T>
635 long lround BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
636 { return boost::math::tr1::lround BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<double>(x)); }
637 #if 0
638 double nan BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str);
639 float nanf BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str);
640 long double nanl BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str);
641 double nearbyint BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
642 float nearbyintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
643 long double nearbyintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
644 #endif
645 inline float nextafterf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
646 { return boost::math::tr1::boost_nextafterf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
647 inline double nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
648 { return boost::math::tr1::boost_nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
649 inline long double nextafterl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
650 { return boost::math::tr1::boost_nextafterl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
651 inline float nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
652 { return boost::math::tr1::nextafterf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
653 inline long double nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
654 { return boost::math::tr1::nextafterl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
655 template <class T1, class T2>
656 inline typename tools::promote_args<T1, T2>::type nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
657 { return boost::math::tr1::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(x), static_cast<typename tools::promote_args<T1, T2>::type>(y)); }
658
659 inline float nexttowardf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
660 { return boost::math::tr1::boost_nexttowardf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
661 inline double nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
662 { return boost::math::tr1::boost_nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
663 inline long double nexttowardl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
664 { return boost::math::tr1::boost_nexttowardl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
665 inline float nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
666 { return boost::math::tr1::nexttowardf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
667 inline long double nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
668 { return boost::math::tr1::nexttowardl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
669 template <class T1, class T2>
670 inline typename tools::promote_args<T1, T2>::type nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
671 { return boost::math::tr1::nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(x), static_cast<long double>(y)); }
672 #if 0
673 double remainder BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y);
674 float remainderf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y);
675 long double remainderl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y);
676 double remquo BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y, int *pquo);
677 float remquof BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y, int *pquo);
678 long double remquol BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y, int *pquo);
679 double rint BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
680 float rintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
681 long double rintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
682 #endif
683 inline float roundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
684 { return boost::math::tr1::boost_roundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
685 inline double round BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
686 { return boost::math::tr1::boost_round BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
687 inline long double roundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
688 { return boost::math::tr1::boost_roundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
689 inline float round BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
690 { return boost::math::tr1::roundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
691 inline long double round BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
692 { return boost::math::tr1::roundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
693 template <class T>
694 inline typename tools::promote_args<T>::type round BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
695 { return boost::math::tr1::round BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
696 #if 0
697 double scalbln BOOST_PREVENT_MACRO_SUBSTITUTION(double x, long ex);
698 float scalblnf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, long ex);
699 long double scalblnl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long ex);
700 double scalbn BOOST_PREVENT_MACRO_SUBSTITUTION(double x, int ex);
701 float scalbnf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, int ex);
702 long double scalbnl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, int ex);
703 #endif
704 inline float tgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
705 { return boost::math::tr1::boost_tgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
706 inline double tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
707 { return boost::math::tr1::boost_tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
708 inline long double tgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
709 { return boost::math::tr1::boost_tgammal BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
710 inline float tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
711 { return boost::math::tr1::tgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
712 inline long double tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
713 { return boost::math::tr1::tgammal BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
714 template <class T>
715 inline typename tools::promote_args<T>::type tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
716 { return boost::math::tr1::tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
717
718 inline float truncf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
719 { return boost::math::tr1::boost_truncf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
720 inline double trunc BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
721 { return boost::math::tr1::boost_trunc BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
722 inline long double truncl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
723 { return boost::math::tr1::boost_truncl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
724 inline float trunc BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
725 { return boost::math::tr1::truncf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
726 inline long double trunc BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
727 { return boost::math::tr1::truncl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
728 template <class T>
729 inline typename tools::promote_args<T>::type trunc BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
730 { return boost::math::tr1::trunc BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
731
732 # define NO_MACRO_EXPAND /**/
733 // C99 macros defined as C++ templates
734 template<class T> bool signbit NO_MACRO_EXPAND(T x)
735 { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
736 template<> bool BOOST_MATH_TR1_DECL signbit<float> NO_MACRO_EXPAND(float x);
737 template<> bool BOOST_MATH_TR1_DECL signbit<double> NO_MACRO_EXPAND(double x);
738 template<> bool BOOST_MATH_TR1_DECL signbit<long double> NO_MACRO_EXPAND(long double x);
739
740 template<class T> int fpclassify NO_MACRO_EXPAND(T x)
741 { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
742 template<> int BOOST_MATH_TR1_DECL fpclassify<float> NO_MACRO_EXPAND(float x);
743 template<> int BOOST_MATH_TR1_DECL fpclassify<double> NO_MACRO_EXPAND(double x);
744 template<> int BOOST_MATH_TR1_DECL fpclassify<long double> NO_MACRO_EXPAND(long double x);
745
746 template<class T> bool isfinite NO_MACRO_EXPAND(T x)
747 { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
748 template<> bool BOOST_MATH_TR1_DECL isfinite<float> NO_MACRO_EXPAND(float x);
749 template<> bool BOOST_MATH_TR1_DECL isfinite<double> NO_MACRO_EXPAND(double x);
750 template<> bool BOOST_MATH_TR1_DECL isfinite<long double> NO_MACRO_EXPAND(long double x);
751
752 template<class T> bool isinf NO_MACRO_EXPAND(T x)
753 { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
754 template<> bool BOOST_MATH_TR1_DECL isinf<float> NO_MACRO_EXPAND(float x);
755 template<> bool BOOST_MATH_TR1_DECL isinf<double> NO_MACRO_EXPAND(double x);
756 template<> bool BOOST_MATH_TR1_DECL isinf<long double> NO_MACRO_EXPAND(long double x);
757
758 template<class T> bool isnan NO_MACRO_EXPAND(T x)
759 { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
760 template<> bool BOOST_MATH_TR1_DECL isnan<float> NO_MACRO_EXPAND(float x);
761 template<> bool BOOST_MATH_TR1_DECL isnan<double> NO_MACRO_EXPAND(double x);
762 template<> bool BOOST_MATH_TR1_DECL isnan<long double> NO_MACRO_EXPAND(long double x);
763
764 template<class T> bool isnormal NO_MACRO_EXPAND(T x)
765 { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
766 template<> bool BOOST_MATH_TR1_DECL isnormal<float> NO_MACRO_EXPAND(float x);
767 template<> bool BOOST_MATH_TR1_DECL isnormal<double> NO_MACRO_EXPAND(double x);
768 template<> bool BOOST_MATH_TR1_DECL isnormal<long double> NO_MACRO_EXPAND(long double x);
769
770 #undef NO_MACRO_EXPAND   
771    
772 // [5.2.1.1] associated Laguerre polynomials:
773 inline float assoc_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, float x)
774 { return boost::math::tr1::boost_assoc_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
775 inline double assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, double x)
776 { return boost::math::tr1::boost_assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
777 inline long double assoc_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, long double x)
778 { return boost::math::tr1::boost_assoc_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
779 inline float assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, float x)
780 { return boost::math::tr1::assoc_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
781 inline long double assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, long double x)
782 { return boost::math::tr1::assoc_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
783 template <class T> 
784 inline typename tools::promote_args<T>::type assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, T x)
785 { return boost::math::tr1::assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, static_cast<typename tools::promote_args<T>::type>(x)); }
786
787 // [5.2.1.2] associated Legendre functions:
788 inline float assoc_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float x)
789 { return boost::math::tr1::boost_assoc_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
790 inline double assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, double x)
791 { return boost::math::tr1::boost_assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
792 inline long double assoc_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double x)
793 { return boost::math::tr1::boost_assoc_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
794 inline float assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float x)
795 { return boost::math::tr1::assoc_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
796 inline long double assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double x)
797 { return boost::math::tr1::assoc_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
798 template <class T>
799 inline typename tools::promote_args<T>::type assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, T x)
800 { return boost::math::tr1::assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, static_cast<typename tools::promote_args<T>::type>(x)); }
801
802 // [5.2.1.3] beta function:
803 inline float betaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
804 { return boost::math::tr1::boost_betaf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
805 inline double beta BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
806 { return boost::math::tr1::boost_beta BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
807 inline long double betal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
808 { return boost::math::tr1::boost_betal BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
809 inline float beta BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
810 { return boost::math::tr1::betaf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
811 inline long double beta BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
812 { return boost::math::tr1::betal BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
813 template <class T1, class T2>
814 inline typename tools::promote_args<T1, T2>::type beta BOOST_PREVENT_MACRO_SUBSTITUTION(T2 x, T1 y)
815 { return boost::math::tr1::beta BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(x), static_cast<typename tools::promote_args<T1, T2>::type>(y)); }
816
817 // [5.2.1.4] (complete) elliptic integral of the first kind:
818 inline float comp_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float k)
819 { return boost::math::tr1::boost_comp_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
820 inline double comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double k)
821 { return boost::math::tr1::boost_comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
822 inline long double comp_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k)
823 { return boost::math::tr1::boost_comp_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
824 inline float comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(float k)
825 { return boost::math::tr1::comp_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
826 inline long double comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(long double k)
827 { return boost::math::tr1::comp_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
828 template <class T>
829 inline typename tools::promote_args<T>::type comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(T k)
830 { return boost::math::tr1::comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(k)); }
831
832 // [5.2.1.5]  BOOST_PREVENT_MACRO_SUBSTITUTION(complete) elliptic integral of the second kind:
833 inline float comp_ellint_2f(float k)
834 { return boost::math::tr1::boost_comp_ellint_2f(k); }
835 inline double comp_ellint_2(double k)
836 { return boost::math::tr1::boost_comp_ellint_2(k); }
837 inline long double comp_ellint_2l(long double k)
838 { return boost::math::tr1::boost_comp_ellint_2l(k); }
839 inline float comp_ellint_2(float k)
840 { return boost::math::tr1::comp_ellint_2f(k); }
841 inline long double comp_ellint_2(long double k)
842 { return boost::math::tr1::comp_ellint_2l(k); }
843 template <class T>
844 inline typename tools::promote_args<T>::type comp_ellint_2(T k)
845 { return boost::math::tr1::comp_ellint_2(static_cast<typename tools::promote_args<T>::type> BOOST_PREVENT_MACRO_SUBSTITUTION(k)); }
846
847 // [5.2.1.6]  BOOST_PREVENT_MACRO_SUBSTITUTION(complete) elliptic integral of the third kind:
848 inline float comp_ellint_3f(float k, float nu)
849 { return boost::math::tr1::boost_comp_ellint_3f(k, nu); }
850 inline double comp_ellint_3(double k, double nu)
851 { return boost::math::tr1::boost_comp_ellint_3(k, nu); }
852 inline long double comp_ellint_3l(long double k, long double nu)
853 { return boost::math::tr1::boost_comp_ellint_3l(k, nu); }
854 inline float comp_ellint_3(float k, float nu)
855 { return boost::math::tr1::comp_ellint_3f(k, nu); }
856 inline long double comp_ellint_3(long double k, long double nu)
857 { return boost::math::tr1::comp_ellint_3l(k, nu); }
858 template <class T1, class T2>
859 inline typename tools::promote_args<T1, T2>::type comp_ellint_3(T1 k, T2 nu)
860 { return boost::math::tr1::comp_ellint_3(static_cast<typename tools::promote_args<T1, T2>::type> BOOST_PREVENT_MACRO_SUBSTITUTION(k), static_cast<typename tools::promote_args<T1, T2>::type> BOOST_PREVENT_MACRO_SUBSTITUTION(nu)); }
861
862 #if 0
863 // [5.2.1.7] confluent hypergeometric functions:
864 double conf_hyperg BOOST_PREVENT_MACRO_SUBSTITUTION(double a, double c, double x);
865 float conf_hypergf BOOST_PREVENT_MACRO_SUBSTITUTION(float a, float c, float x);
866 long double conf_hypergl BOOST_PREVENT_MACRO_SUBSTITUTION(long double a, long double c, long double x);
867 #endif
868
869 // [5.2.1.8] regular modified cylindrical Bessel functions:
870 inline float cyl_bessel_if BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
871 { return boost::math::tr1::boost_cyl_bessel_if BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
872 inline double cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x)
873 { return boost::math::tr1::boost_cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
874 inline long double cyl_bessel_il BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
875 { return boost::math::tr1::boost_cyl_bessel_il BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
876 inline float cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
877 { return boost::math::tr1::cyl_bessel_if BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
878 inline long double cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
879 { return boost::math::tr1::cyl_bessel_il BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
880 template <class T1, class T2>
881 inline typename tools::promote_args<T1, T2>::type cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(T1 nu, T2 x)
882 { return boost::math::tr1::cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(nu), static_cast<typename tools::promote_args<T1, T2>::type>(x)); }
883
884 // [5.2.1.9] cylindrical Bessel functions (of the first kind):
885 inline float cyl_bessel_jf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
886 { return boost::math::tr1::boost_cyl_bessel_jf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
887 inline double cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x)
888 { return boost::math::tr1::boost_cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
889 inline long double cyl_bessel_jl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
890 { return boost::math::tr1::boost_cyl_bessel_jl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
891 inline float cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
892 { return boost::math::tr1::cyl_bessel_jf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
893 inline long double cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
894 { return boost::math::tr1::cyl_bessel_jl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
895 template <class T1, class T2>
896 inline typename tools::promote_args<T1, T2>::type cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(T1 nu, T2 x)
897 { return boost::math::tr1::cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(nu), static_cast<typename tools::promote_args<T1, T2>::type>(x)); }
898
899 // [5.2.1.10] irregular modified cylindrical Bessel functions:
900 inline float cyl_bessel_kf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
901 { return boost::math::tr1::boost_cyl_bessel_kf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
902 inline double cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x)
903 { return boost::math::tr1::boost_cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
904 inline long double cyl_bessel_kl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
905 { return boost::math::tr1::boost_cyl_bessel_kl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
906 inline float cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
907 { return boost::math::tr1::cyl_bessel_kf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
908 inline long double cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
909 { return boost::math::tr1::cyl_bessel_kl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
910 template <class T1, class T2>
911 inline typename tools::promote_args<T1, T2>::type cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(T1 nu, T2 x)
912 { return boost::math::tr1::cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type> BOOST_PREVENT_MACRO_SUBSTITUTION(nu), static_cast<typename tools::promote_args<T1, T2>::type>(x)); }
913
914 // [5.2.1.11] cylindrical Neumann functions;
915 // cylindrical Bessel functions (of the second kind):
916 inline float cyl_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
917 { return boost::math::tr1::boost_cyl_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
918 inline double cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x)
919 { return boost::math::tr1::boost_cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
920 inline long double cyl_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
921 { return boost::math::tr1::boost_cyl_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
922 inline float cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
923 { return boost::math::tr1::cyl_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
924 inline long double cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
925 { return boost::math::tr1::cyl_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
926 template <class T1, class T2>
927 inline typename tools::promote_args<T1, T2>::type cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(T1 nu, T2 x)
928 { return boost::math::tr1::cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(nu), static_cast<typename tools::promote_args<T1, T2>::type>(x)); }
929
930 // [5.2.1.12] (incomplete) elliptic integral of the first kind:
931 inline float ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi)
932 { return boost::math::tr1::boost_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
933 inline double ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi)
934 { return boost::math::tr1::boost_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
935 inline long double ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi)
936 { return boost::math::tr1::boost_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
937 inline float ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi)
938 { return boost::math::tr1::ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
939 inline long double ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi)
940 { return boost::math::tr1::ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
941 template <class T1, class T2>
942 inline typename tools::promote_args<T1, T2>::type ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(T1 k, T2 phi)
943 { return boost::math::tr1::ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(k), static_cast<typename tools::promote_args<T1, T2>::type>(phi)); }
944
945 // [5.2.1.13] (incomplete) elliptic integral of the second kind:
946 inline float ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi)
947 { return boost::math::tr1::boost_ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
948 inline double ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi)
949 { return boost::math::tr1::boost_ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
950 inline long double ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi)
951 { return boost::math::tr1::boost_ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
952 inline float ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi)
953 { return boost::math::tr1::ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
954 inline long double ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi)
955 { return boost::math::tr1::ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
956 template <class T1, class T2>
957 inline typename tools::promote_args<T1, T2>::type ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(T1 k, T2 phi)
958 { return boost::math::tr1::ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(k), static_cast<typename tools::promote_args<T1, T2>::type>(phi)); }
959
960 // [5.2.1.14] (incomplete) elliptic integral of the third kind:
961 inline float ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu, float phi)
962 { return boost::math::tr1::boost_ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
963 inline double ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double nu, double phi)
964 { return boost::math::tr1::boost_ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
965 inline long double ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double nu, long double phi)
966 { return boost::math::tr1::boost_ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
967 inline float ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu, float phi)
968 { return boost::math::tr1::ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
969 inline long double ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double nu, long double phi)
970 { return boost::math::tr1::ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
971 template <class T1, class T2, class T3>
972 inline typename tools::promote_args<T1, T2, T3>::type ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(T1 k, T2 nu, T3 phi)
973 { return boost::math::tr1::ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2, T3>::type>(k), static_cast<typename tools::promote_args<T1, T2, T3>::type>(nu), static_cast<typename tools::promote_args<T1, T2, T3>::type>(phi)); }
974
975 // [5.2.1.15] exponential integral:
976 inline float expintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
977 { return boost::math::tr1::boost_expintf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
978 inline double expint BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
979 { return boost::math::tr1::boost_expint BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
980 inline long double expintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
981 { return boost::math::tr1::boost_expintl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
982 inline float expint BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
983 { return boost::math::tr1::expintf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
984 inline long double expint BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
985 { return boost::math::tr1::expintl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
986 template <class T>
987 inline typename tools::promote_args<T>::type expint BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
988 { return boost::math::tr1::expint BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
989
990 // [5.2.1.16] Hermite polynomials:
991 inline float hermitef BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
992 { return boost::math::tr1::boost_hermitef BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
993 inline double hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x)
994 { return boost::math::tr1::boost_hermite BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
995 inline long double hermitel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
996 { return boost::math::tr1::boost_hermitel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
997 inline float hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
998 { return boost::math::tr1::hermitef BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
999 inline long double hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
1000 { return boost::math::tr1::hermitel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1001 template <class T>
1002 inline typename tools::promote_args<T>::type hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, T x)
1003 { return boost::math::tr1::hermite BOOST_PREVENT_MACRO_SUBSTITUTION(n, static_cast<typename tools::promote_args<T>::type>(x)); }
1004
1005 #if 0
1006 // [5.2.1.17] hypergeometric functions:
1007 double hyperg BOOST_PREVENT_MACRO_SUBSTITUTION(double a, double b, double c, double x);
1008 float hypergf BOOST_PREVENT_MACRO_SUBSTITUTION(float a, float b, float c, float x);
1009 long double hypergl BOOST_PREVENT_MACRO_SUBSTITUTION(long double a, long double b, long double c,
1010 long double x);
1011 #endif
1012
1013 // [5.2.1.18] Laguerre polynomials:
1014 inline float laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
1015 { return boost::math::tr1::boost_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1016 inline double laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x)
1017 { return boost::math::tr1::boost_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1018 inline long double laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
1019 { return boost::math::tr1::boost_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1020 inline float laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
1021 { return boost::math::tr1::laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1022 inline long double laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
1023 { return boost::math::tr1::laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1024 template <class T>
1025 inline typename tools::promote_args<T>::type laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, T x)
1026 { return boost::math::tr1::laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, static_cast<typename tools::promote_args<T>::type>(x)); }
1027
1028 // [5.2.1.19] Legendre polynomials:
1029 inline float legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, float x)
1030 { return boost::math::tr1::boost_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
1031 inline double legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, double x)
1032 { return boost::math::tr1::boost_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
1033 inline long double legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, long double x)
1034 { return boost::math::tr1::boost_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
1035 inline float legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, float x)
1036 { return boost::math::tr1::legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
1037 inline long double legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, long double x)
1038 { return boost::math::tr1::legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
1039 template <class T>
1040 inline typename tools::promote_args<T>::type legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, T x)
1041 { return boost::math::tr1::legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, static_cast<typename tools::promote_args<T>::type>(x)); }
1042
1043 // [5.2.1.20] Riemann zeta function:
1044 inline float riemann_zetaf BOOST_PREVENT_MACRO_SUBSTITUTION(float z)
1045 { return boost::math::tr1::boost_riemann_zetaf BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
1046 inline double riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(double z)
1047 { return boost::math::tr1::boost_riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
1048 inline long double riemann_zetal BOOST_PREVENT_MACRO_SUBSTITUTION(long double z)
1049 { return boost::math::tr1::boost_riemann_zetal BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
1050 inline float riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(float z)
1051 { return boost::math::tr1::riemann_zetaf BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
1052 inline long double riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(long double z)
1053 { return boost::math::tr1::riemann_zetal BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
1054 template <class T>
1055 inline typename tools::promote_args<T>::type riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(T z)
1056 { return boost::math::tr1::riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(z)); }
1057
1058 // [5.2.1.21] spherical Bessel functions (of the first kind):
1059 inline float sph_besself BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
1060 { return boost::math::tr1::boost_sph_besself BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1061 inline double sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x)
1062 { return boost::math::tr1::boost_sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1063 inline long double sph_bessell BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
1064 { return boost::math::tr1::boost_sph_bessell BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1065 inline float sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
1066 { return boost::math::tr1::sph_besself BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1067 inline long double sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
1068 { return boost::math::tr1::sph_bessell BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1069 template <class T>
1070 inline typename tools::promote_args<T>::type sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, T x)
1071 { return boost::math::tr1::sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(n, static_cast<typename tools::promote_args<T>::type>(x)); }
1072
1073 // [5.2.1.22] spherical associated Legendre functions:
1074 inline float sph_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float theta)
1075 { return boost::math::tr1::boost_sph_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
1076 inline double sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, double theta)
1077 { return boost::math::tr1::boost_sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
1078 inline long double sph_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double theta)
1079 { return boost::math::tr1::boost_sph_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
1080 inline float sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float theta)
1081 { return boost::math::tr1::sph_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
1082 inline long double sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double theta)
1083 { return boost::math::tr1::sph_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
1084 template <class T>
1085 inline typename tools::promote_args<T>::type sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, T theta)
1086 { return boost::math::tr1::sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, static_cast<typename tools::promote_args<T>::type>(theta)); }
1087
1088 // [5.2.1.23] spherical Neumann functions;
1089 // spherical Bessel functions (of the second kind):
1090 inline float sph_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
1091 { return boost::math::tr1::boost_sph_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1092 inline double sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x)
1093 { return boost::math::tr1::boost_sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1094 inline long double sph_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
1095 { return boost::math::tr1::boost_sph_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1096 inline float sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
1097 { return boost::math::tr1::sph_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1098 inline long double sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
1099 { return boost::math::tr1::sph_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
1100 template <class T>
1101 inline typename tools::promote_args<T>::type sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, T x)
1102 { return boost::math::tr1::sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(n, static_cast<typename tools::promote_args<T>::type>(x)); }
1103
1104 }}} // namespaces
1105
1106 #else // __cplusplus
1107
1108 // C99 Functions:
1109 #ifdef acosh
1110 #undef acosh
1111 #endif
1112 #define acosh boost_acosh
1113 #ifdef acoshf
1114 #undef acoshf
1115 #endif
1116 #define acoshf boost_acoshf
1117 #ifdef acoshl
1118 #undef acoshl
1119 #endif
1120 #define acoshl boost_acoshl
1121
1122 #ifdef asinh
1123 #undef asinh
1124 #endif
1125 #define asinh boost_asinh
1126 #ifdef asinhf
1127 #undef asinhf
1128 #endif
1129 #define asinhf boost_asinhf
1130 #ifdef asinhl
1131 #undef asinhl
1132 #endif
1133 #define asinhl boost_asinhl
1134
1135 #ifdef atanh
1136 #undef atanh
1137 #endif
1138 #define atanh boost_atanh
1139 #ifdef atanhf
1140 #undef atanhf
1141 #endif
1142 #define atanhf boost_atanhf
1143 #ifdef atanhl
1144 #undef atanhl
1145 #endif
1146 #define atanhl boost_atanhl
1147
1148 #ifdef cbrt
1149 #undef cbrt
1150 #endif
1151 #define cbrt boost_cbrt
1152 #ifdef cbrtf
1153 #undef cbrtf
1154 #endif
1155 #define cbrtf boost_cbrtf
1156 #ifdef cbrtl
1157 #undef cbrtl
1158 #endif
1159 #define cbrtl boost_cbrtl
1160
1161 #ifdef copysign
1162 #undef copysign
1163 #endif
1164 #define copysign boost_copysign
1165 #ifdef copysignf
1166 #undef copysignf
1167 #endif
1168 #define copysignf boost_copysignf
1169 #ifdef copysignl
1170 #undef copysignl
1171 #endif
1172 #define copysignl boost_copysignl
1173
1174 #ifdef erf
1175 #undef erf
1176 #endif
1177 #define erf boost_erf
1178 #ifdef erff
1179 #undef erff
1180 #endif
1181 #define erff boost_erff
1182 #ifdef erfl
1183 #undef erfl
1184 #endif
1185 #define erfl boost_erfl
1186
1187 #ifdef erfc
1188 #undef erfc
1189 #endif
1190 #define erfc boost_erfc
1191 #ifdef erfcf
1192 #undef erfcf
1193 #endif
1194 #define erfcf boost_erfcf
1195 #ifdef erfcl
1196 #undef erfcl
1197 #endif
1198 #define erfcl boost_erfcl
1199
1200 #if 0
1201 #ifdef exp2
1202 #undef exp2
1203 #endif
1204 #define exp2 boost_exp2
1205 #ifdef exp2f
1206 #undef exp2f
1207 #endif
1208 #define exp2f boost_exp2f
1209 #ifdef exp2l
1210 #undef exp2l
1211 #endif
1212 #define exp2l boost_exp2l
1213 #endif
1214
1215 #ifdef expm1
1216 #undef expm1
1217 #endif
1218 #define expm1 boost_expm1
1219 #ifdef expm1f
1220 #undef expm1f
1221 #endif
1222 #define expm1f boost_expm1f
1223 #ifdef expm1l
1224 #undef expm1l
1225 #endif
1226 #define expm1l boost_expm1l
1227
1228 #if 0
1229 #ifdef fdim
1230 #undef fdim
1231 #endif
1232 #define fdim boost_fdim
1233 #ifdef fdimf
1234 #undef fdimf
1235 #endif
1236 #define fdimf boost_fdimf
1237 #ifdef fdiml
1238 #undef fdiml
1239 #endif
1240 #define fdiml boost_fdiml
1241 #ifdef acosh
1242 #undef acosh
1243 #endif
1244 #define fma boost_fma
1245 #ifdef fmaf
1246 #undef fmaf
1247 #endif
1248 #define fmaf boost_fmaf
1249 #ifdef fmal
1250 #undef fmal
1251 #endif
1252 #define fmal boost_fmal
1253 #endif
1254
1255 #ifdef fmax
1256 #undef fmax
1257 #endif
1258 #define fmax boost_fmax
1259 #ifdef fmaxf
1260 #undef fmaxf
1261 #endif
1262 #define fmaxf boost_fmaxf
1263 #ifdef fmaxl
1264 #undef fmaxl
1265 #endif
1266 #define fmaxl boost_fmaxl
1267
1268 #ifdef fmin
1269 #undef fmin
1270 #endif
1271 #define fmin boost_fmin
1272 #ifdef fminf
1273 #undef fminf
1274 #endif
1275 #define fminf boost_fminf
1276 #ifdef fminl
1277 #undef fminl
1278 #endif
1279 #define fminl boost_fminl
1280
1281 #ifdef hypot
1282 #undef hypot
1283 #endif
1284 #define hypot boost_hypot
1285 #ifdef hypotf
1286 #undef hypotf
1287 #endif
1288 #define hypotf boost_hypotf
1289 #ifdef hypotl
1290 #undef hypotl
1291 #endif
1292 #define hypotl boost_hypotl
1293
1294 #if 0
1295 #ifdef ilogb
1296 #undef ilogb
1297 #endif
1298 #define ilogb boost_ilogb
1299 #ifdef ilogbf
1300 #undef ilogbf
1301 #endif
1302 #define ilogbf boost_ilogbf
1303 #ifdef ilogbl
1304 #undef ilogbl
1305 #endif
1306 #define ilogbl boost_ilogbl
1307 #endif
1308
1309 #ifdef lgamma
1310 #undef lgamma
1311 #endif
1312 #define lgamma boost_lgamma
1313 #ifdef lgammaf
1314 #undef lgammaf
1315 #endif
1316 #define lgammaf boost_lgammaf
1317 #ifdef lgammal
1318 #undef lgammal
1319 #endif
1320 #define lgammal boost_lgammal
1321
1322 #ifdef BOOST_HAS_LONG_LONG
1323 #if 0
1324 #ifdef llrint
1325 #undef llrint
1326 #endif
1327 #define llrint boost_llrint
1328 #ifdef llrintf
1329 #undef llrintf
1330 #endif
1331 #define llrintf boost_llrintf
1332 #ifdef llrintl
1333 #undef llrintl
1334 #endif
1335 #define llrintl boost_llrintl
1336 #endif
1337 #ifdef llround
1338 #undef llround
1339 #endif
1340 #define llround boost_llround
1341 #ifdef llroundf
1342 #undef llroundf
1343 #endif
1344 #define llroundf boost_llroundf
1345 #ifdef llroundl
1346 #undef llroundl
1347 #endif
1348 #define llroundl boost_llroundl
1349 #endif
1350
1351 #ifdef log1p
1352 #undef log1p
1353 #endif
1354 #define log1p boost_log1p
1355 #ifdef log1pf
1356 #undef log1pf
1357 #endif
1358 #define log1pf boost_log1pf
1359 #ifdef log1pl
1360 #undef log1pl
1361 #endif
1362 #define log1pl boost_log1pl
1363
1364 #if 0
1365 #ifdef log2
1366 #undef log2
1367 #endif
1368 #define log2 boost_log2
1369 #ifdef log2f
1370 #undef log2f
1371 #endif
1372 #define log2f boost_log2f
1373 #ifdef log2l
1374 #undef log2l
1375 #endif
1376 #define log2l boost_log2l
1377
1378 #ifdef logb
1379 #undef logb
1380 #endif
1381 #define logb boost_logb
1382 #ifdef logbf
1383 #undef logbf
1384 #endif
1385 #define logbf boost_logbf
1386 #ifdef logbl
1387 #undef logbl
1388 #endif
1389 #define logbl boost_logbl
1390
1391 #ifdef lrint
1392 #undef lrint
1393 #endif
1394 #define lrint boost_lrint
1395 #ifdef lrintf
1396 #undef lrintf
1397 #endif
1398 #define lrintf boost_lrintf
1399 #ifdef lrintl
1400 #undef lrintl
1401 #endif
1402 #define lrintl boost_lrintl
1403 #endif
1404
1405 #ifdef lround
1406 #undef lround
1407 #endif
1408 #define lround boost_lround
1409 #ifdef lroundf
1410 #undef lroundf
1411 #endif
1412 #define lroundf boost_lroundf
1413 #ifdef lroundl
1414 #undef lroundl
1415 #endif
1416 #define lroundl boost_lroundl
1417
1418 #if 0
1419 #ifdef nan
1420 #undef nan
1421 #endif
1422 #define nan boost_nan
1423 #ifdef nanf
1424 #undef nanf
1425 #endif
1426 #define nanf boost_nanf
1427 #ifdef nanl
1428 #undef nanl
1429 #endif
1430 #define nanl boost_nanl
1431
1432 #ifdef nearbyint
1433 #undef nearbyint
1434 #endif
1435 #define nearbyint boost_nearbyint
1436 #ifdef nearbyintf
1437 #undef nearbyintf
1438 #endif
1439 #define nearbyintf boost_nearbyintf
1440 #ifdef nearbyintl
1441 #undef nearbyintl
1442 #endif
1443 #define nearbyintl boost_nearbyintl
1444 #endif
1445
1446 #ifdef nextafter
1447 #undef nextafter
1448 #endif
1449 #define nextafter boost_nextafter
1450 #ifdef nextafterf
1451 #undef nextafterf
1452 #endif
1453 #define nextafterf boost_nextafterf
1454 #ifdef nextafterl
1455 #undef nextafterl
1456 #endif
1457 #define nextafterl boost_nextafterl
1458
1459 #ifdef nexttoward
1460 #undef nexttoward
1461 #endif
1462 #define nexttoward boost_nexttoward
1463 #ifdef nexttowardf
1464 #undef nexttowardf
1465 #endif
1466 #define nexttowardf boost_nexttowardf
1467 #ifdef nexttowardl
1468 #undef nexttowardl
1469 #endif
1470 #define nexttowardl boost_nexttowardl
1471
1472 #if 0
1473 #ifdef remainder
1474 #undef remainder
1475 #endif
1476 #define remainder boost_remainder
1477 #ifdef remainderf
1478 #undef remainderf
1479 #endif
1480 #define remainderf boost_remainderf
1481 #ifdef remainderl
1482 #undef remainderl
1483 #endif
1484 #define remainderl boost_remainderl
1485
1486 #ifdef remquo
1487 #undef remquo
1488 #endif
1489 #define remquo boost_remquo
1490 #ifdef remquof
1491 #undef remquof
1492 #endif
1493 #define remquof boost_remquof
1494 #ifdef remquol
1495 #undef remquol
1496 #endif
1497 #define remquol boost_remquol
1498
1499 #ifdef rint
1500 #undef rint
1501 #endif
1502 #define rint boost_rint
1503 #ifdef rintf
1504 #undef rintf
1505 #endif
1506 #define rintf boost_rintf
1507 #ifdef rintl
1508 #undef rintl
1509 #endif
1510 #define rintl boost_rintl
1511 #endif
1512
1513 #ifdef round
1514 #undef round
1515 #endif
1516 #define round boost_round
1517 #ifdef roundf
1518 #undef roundf
1519 #endif
1520 #define roundf boost_roundf
1521 #ifdef roundl
1522 #undef roundl
1523 #endif
1524 #define roundl boost_roundl
1525
1526 #if 0
1527 #ifdef scalbln
1528 #undef scalbln
1529 #endif
1530 #define scalbln boost_scalbln
1531 #ifdef scalblnf
1532 #undef scalblnf
1533 #endif
1534 #define scalblnf boost_scalblnf
1535 #ifdef scalblnl
1536 #undef scalblnl
1537 #endif
1538 #define scalblnl boost_scalblnl
1539
1540 #ifdef scalbn
1541 #undef scalbn
1542 #endif
1543 #define scalbn boost_scalbn
1544 #ifdef scalbnf
1545 #undef scalbnf
1546 #endif
1547 #define scalbnf boost_scalbnf
1548 #ifdef scalbnl
1549 #undef scalbnl
1550 #endif
1551 #define scalbnl boost_scalbnl
1552 #endif
1553
1554 #ifdef tgamma
1555 #undef tgamma
1556 #endif
1557 #define tgamma boost_tgamma
1558 #ifdef tgammaf
1559 #undef tgammaf
1560 #endif
1561 #define tgammaf boost_tgammaf
1562 #ifdef tgammal
1563 #undef tgammal
1564 #endif
1565 #define tgammal boost_tgammal
1566
1567 #ifdef trunc
1568 #undef trunc
1569 #endif
1570 #define trunc boost_trunc
1571 #ifdef truncf
1572 #undef truncf
1573 #endif
1574 #define truncf boost_truncf
1575 #ifdef truncl
1576 #undef truncl
1577 #endif
1578 #define truncl boost_truncl
1579
1580 // [5.2.1.1] associated Laguerre polynomials:
1581 #ifdef assoc_laguerre
1582 #undef assoc_laguerre
1583 #endif
1584 #define assoc_laguerre boost_assoc_laguerre
1585 #ifdef assoc_laguerref
1586 #undef assoc_laguerref
1587 #endif
1588 #define assoc_laguerref boost_assoc_laguerref
1589 #ifdef assoc_laguerrel
1590 #undef assoc_laguerrel
1591 #endif
1592 #define assoc_laguerrel boost_assoc_laguerrel
1593
1594 // [5.2.1.2] associated Legendre functions:
1595 #ifdef assoc_legendre
1596 #undef assoc_legendre
1597 #endif
1598 #define assoc_legendre boost_assoc_legendre
1599 #ifdef assoc_legendref
1600 #undef assoc_legendref
1601 #endif
1602 #define assoc_legendref boost_assoc_legendref
1603 #ifdef assoc_legendrel
1604 #undef assoc_legendrel
1605 #endif
1606 #define assoc_legendrel boost_assoc_legendrel
1607
1608 // [5.2.1.3] beta function:
1609 #ifdef beta
1610 #undef beta
1611 #endif
1612 #define beta boost_beta
1613 #ifdef betaf
1614 #undef betaf
1615 #endif
1616 #define betaf boost_betaf
1617 #ifdef betal
1618 #undef betal
1619 #endif
1620 #define betal boost_betal
1621
1622 // [5.2.1.4] (complete) elliptic integral of the first kind:
1623 #ifdef comp_ellint_1
1624 #undef comp_ellint_1
1625 #endif
1626 #define comp_ellint_1 boost_comp_ellint_1
1627 #ifdef comp_ellint_1f
1628 #undef comp_ellint_1f
1629 #endif
1630 #define comp_ellint_1f boost_comp_ellint_1f
1631 #ifdef comp_ellint_1l
1632 #undef comp_ellint_1l
1633 #endif
1634 #define comp_ellint_1l boost_comp_ellint_1l
1635
1636 // [5.2.1.5] (complete) elliptic integral of the second kind:
1637 #ifdef comp_ellint_2
1638 #undef comp_ellint_2
1639 #endif
1640 #define comp_ellint_2 boost_comp_ellint_2
1641 #ifdef comp_ellint_2f
1642 #undef comp_ellint_2f
1643 #endif
1644 #define comp_ellint_2f boost_comp_ellint_2f
1645 #ifdef comp_ellint_2l
1646 #undef comp_ellint_2l
1647 #endif
1648 #define comp_ellint_2l boost_comp_ellint_2l
1649
1650 // [5.2.1.6] (complete) elliptic integral of the third kind:
1651 #ifdef comp_ellint_3
1652 #undef comp_ellint_3
1653 #endif
1654 #define comp_ellint_3 boost_comp_ellint_3
1655 #ifdef comp_ellint_3f
1656 #undef comp_ellint_3f
1657 #endif
1658 #define comp_ellint_3f boost_comp_ellint_3f
1659 #ifdef comp_ellint_3l
1660 #undef comp_ellint_3l
1661 #endif
1662 #define comp_ellint_3l boost_comp_ellint_3l
1663
1664 #if 0
1665 // [5.2.1.7] confluent hypergeometric functions:
1666 #ifdef conf_hyper
1667 #undef conf_hyper
1668 #endif
1669 #define conf_hyper boost_conf_hyper
1670 #ifdef conf_hyperf
1671 #undef conf_hyperf
1672 #endif
1673 #define conf_hyperf boost_conf_hyperf
1674 #ifdef conf_hyperl
1675 #undef conf_hyperl
1676 #endif
1677 #define conf_hyperl boost_conf_hyperl
1678 #endif
1679
1680 // [5.2.1.8] regular modified cylindrical Bessel functions:
1681 #ifdef cyl_bessel_i
1682 #undef cyl_bessel_i
1683 #endif
1684 #define cyl_bessel_i boost_cyl_bessel_i
1685 #ifdef cyl_bessel_if
1686 #undef cyl_bessel_if
1687 #endif
1688 #define cyl_bessel_if boost_cyl_bessel_if
1689 #ifdef cyl_bessel_il
1690 #undef cyl_bessel_il
1691 #endif
1692 #define cyl_bessel_il boost_cyl_bessel_il
1693
1694 // [5.2.1.9] cylindrical Bessel functions (of the first kind):
1695 #ifdef cyl_bessel_j
1696 #undef cyl_bessel_j
1697 #endif
1698 #define cyl_bessel_j boost_cyl_bessel_j
1699 #ifdef cyl_bessel_jf
1700 #undef cyl_bessel_jf
1701 #endif
1702 #define cyl_bessel_jf boost_cyl_bessel_jf
1703 #ifdef cyl_bessel_jl
1704 #undef cyl_bessel_jl
1705 #endif
1706 #define cyl_bessel_jl boost_cyl_bessel_jl
1707
1708 // [5.2.1.10] irregular modified cylindrical Bessel functions:
1709 #ifdef cyl_bessel_k
1710 #undef cyl_bessel_k
1711 #endif
1712 #define cyl_bessel_k boost_cyl_bessel_k
1713 #ifdef cyl_bessel_kf
1714 #undef cyl_bessel_kf
1715 #endif
1716 #define cyl_bessel_kf boost_cyl_bessel_kf
1717 #ifdef cyl_bessel_kl
1718 #undef cyl_bessel_kl
1719 #endif
1720 #define cyl_bessel_kl boost_cyl_bessel_kl
1721
1722 // [5.2.1.11] cylindrical Neumann functions BOOST_MATH_C99_THROW_SPEC;
1723 // cylindrical Bessel functions (of the second kind):
1724 #ifdef cyl_neumann
1725 #undef cyl_neumann
1726 #endif
1727 #define cyl_neumann boost_cyl_neumann
1728 #ifdef cyl_neumannf
1729 #undef cyl_neumannf
1730 #endif
1731 #define cyl_neumannf boost_cyl_neumannf
1732 #ifdef cyl_neumannl
1733 #undef cyl_neumannl
1734 #endif
1735 #define cyl_neumannl boost_cyl_neumannl
1736
1737 // [5.2.1.12] (incomplete) elliptic integral of the first kind:
1738 #ifdef ellint_1
1739 #undef ellint_1
1740 #endif
1741 #define ellint_1 boost_ellint_1
1742 #ifdef ellint_1f
1743 #undef ellint_1f
1744 #endif
1745 #define ellint_1f boost_ellint_1f
1746 #ifdef ellint_1l
1747 #undef ellint_1l
1748 #endif
1749 #define ellint_1l boost_ellint_1l
1750
1751 // [5.2.1.13] (incomplete) elliptic integral of the second kind:
1752 #ifdef ellint_2
1753 #undef ellint_2
1754 #endif
1755 #define ellint_2 boost_ellint_2
1756 #ifdef ellint_2f
1757 #undef ellint_2f
1758 #endif
1759 #define ellint_2f boost_ellint_2f
1760 #ifdef ellint_2l
1761 #undef ellint_2l
1762 #endif
1763 #define ellint_2l boost_ellint_2l
1764
1765 // [5.2.1.14] (incomplete) elliptic integral of the third kind:
1766 #ifdef ellint_3
1767 #undef ellint_3
1768 #endif
1769 #define ellint_3 boost_ellint_3
1770 #ifdef ellint_3f
1771 #undef ellint_3f
1772 #endif
1773 #define ellint_3f boost_ellint_3f
1774 #ifdef ellint_3l
1775 #undef ellint_3l
1776 #endif
1777 #define ellint_3l boost_ellint_3l
1778
1779 // [5.2.1.15] exponential integral:
1780 #ifdef expint
1781 #undef expint
1782 #endif
1783 #define expint boost_expint
1784 #ifdef expintf
1785 #undef expintf
1786 #endif
1787 #define expintf boost_expintf
1788 #ifdef expintl
1789 #undef expintl
1790 #endif
1791 #define expintl boost_expintl
1792
1793 // [5.2.1.16] Hermite polynomials:
1794 #ifdef hermite
1795 #undef hermite
1796 #endif
1797 #define hermite boost_hermite
1798 #ifdef hermitef
1799 #undef hermitef
1800 #endif
1801 #define hermitef boost_hermitef
1802 #ifdef hermitel
1803 #undef hermitel
1804 #endif
1805 #define hermitel boost_hermitel
1806
1807 #if 0
1808 // [5.2.1.17] hypergeometric functions:
1809 #ifdef hyperg
1810 #undef hyperg
1811 #endif
1812 #define hyperg boost_hyperg
1813 #ifdef hypergf
1814 #undef hypergf
1815 #endif
1816 #define hypergf boost_hypergf
1817 #ifdef hypergl
1818 #undef hypergl
1819 #endif
1820 #define hypergl boost_hypergl
1821 #endif
1822
1823 // [5.2.1.18] Laguerre polynomials:
1824 #ifdef laguerre
1825 #undef laguerre
1826 #endif
1827 #define laguerre boost_laguerre
1828 #ifdef laguerref
1829 #undef laguerref
1830 #endif
1831 #define laguerref boost_laguerref
1832 #ifdef laguerrel
1833 #undef laguerrel
1834 #endif
1835 #define laguerrel boost_laguerrel
1836
1837 // [5.2.1.19] Legendre polynomials:
1838 #ifdef legendre
1839 #undef legendre
1840 #endif
1841 #define legendre boost_legendre
1842 #ifdef legendref
1843 #undef legendref
1844 #endif
1845 #define legendref boost_legendref
1846 #ifdef legendrel
1847 #undef legendrel
1848 #endif
1849 #define legendrel boost_legendrel
1850
1851 // [5.2.1.20] Riemann zeta function:
1852 #ifdef riemann_zeta
1853 #undef riemann_zeta
1854 #endif
1855 #define riemann_zeta boost_riemann_zeta
1856 #ifdef riemann_zetaf
1857 #undef riemann_zetaf
1858 #endif
1859 #define riemann_zetaf boost_riemann_zetaf
1860 #ifdef riemann_zetal
1861 #undef riemann_zetal
1862 #endif
1863 #define riemann_zetal boost_riemann_zetal
1864
1865 // [5.2.1.21] spherical Bessel functions (of the first kind):
1866 #ifdef sph_bessel
1867 #undef sph_bessel
1868 #endif
1869 #define sph_bessel boost_sph_bessel
1870 #ifdef sph_besself
1871 #undef sph_besself
1872 #endif
1873 #define sph_besself boost_sph_besself
1874 #ifdef sph_bessell
1875 #undef sph_bessell
1876 #endif
1877 #define sph_bessell boost_sph_bessell
1878
1879 // [5.2.1.22] spherical associated Legendre functions:
1880 #ifdef sph_legendre
1881 #undef sph_legendre
1882 #endif
1883 #define sph_legendre boost_sph_legendre
1884 #ifdef sph_legendref
1885 #undef sph_legendref
1886 #endif
1887 #define sph_legendref boost_sph_legendref
1888 #ifdef sph_legendrel
1889 #undef sph_legendrel
1890 #endif
1891 #define sph_legendrel boost_sph_legendrel
1892
1893 // [5.2.1.23] spherical Neumann functions BOOST_MATH_C99_THROW_SPEC;
1894 // spherical Bessel functions (of the second kind):
1895 #ifdef sph_neumann
1896 #undef sph_neumann
1897 #endif
1898 #define sph_neumann boost_sph_neumann
1899 #ifdef sph_neumannf
1900 #undef sph_neumannf
1901 #endif
1902 #define sph_neumannf boost_sph_neumannf
1903 #ifdef sph_neumannl
1904 #undef sph_neumannl
1905 #endif
1906 #define sph_neumannl boost_sph_neumannl
1907
1908 #endif // __cplusplus
1909
1910 #endif // BOOST_MATH_TR1_HPP
1911