tr1.hpp 76 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118
  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. #ifndef BOOST_MATH_TR1_HPP
  7. #define BOOST_MATH_TR1_HPP
  8. #ifdef _MSC_VER
  9. #pragma once
  10. #endif
  11. #include <math.h> // So we can check which std C lib we're using
  12. #ifdef __cplusplus
  13. #include <boost/config.hpp>
  14. #include <boost/static_assert.hpp>
  15. namespace boost{ namespace math{ namespace tr1{ extern "C"{
  16. #else
  17. #define BOOST_PREVENT_MACRO_SUBSTITUTION /**/
  18. #endif // __cplusplus
  19. // we need to import/export our code only if the user has specifically
  20. // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
  21. // libraries to be dynamically linked, or BOOST_MATH_TR1_DYN_LINK
  22. // if they want just this one to be dynamically liked:
  23. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_MATH_TR1_DYN_LINK)
  24. // export if this is our own source, otherwise import:
  25. #ifdef BOOST_MATH_TR1_SOURCE
  26. # define BOOST_MATH_TR1_DECL BOOST_SYMBOL_EXPORT
  27. #else
  28. # define BOOST_MATH_TR1_DECL BOOST_SYMBOL_IMPORT
  29. #endif // BOOST_MATH_TR1_SOURCE
  30. #else
  31. # define BOOST_MATH_TR1_DECL
  32. #endif // DYN_LINK
  33. //
  34. // Set any throw specifications on the C99 extern "C" functions - these have to be
  35. // the same as used in the std lib if any.
  36. //
  37. #if defined(__GLIBC__) && defined(__THROW)
  38. # define BOOST_MATH_C99_THROW_SPEC __THROW
  39. #else
  40. # define BOOST_MATH_C99_THROW_SPEC
  41. #endif
  42. //
  43. // Now set up the libraries to link against:
  44. //
  45. #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
  46. && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
  47. # define BOOST_LIB_NAME boost_math_c99
  48. # if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
  49. # define BOOST_DYN_LINK
  50. # endif
  51. # include <boost/config/auto_link.hpp>
  52. #endif
  53. #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
  54. && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
  55. # define BOOST_LIB_NAME boost_math_c99f
  56. # if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
  57. # define BOOST_DYN_LINK
  58. # endif
  59. # include <boost/config/auto_link.hpp>
  60. #endif
  61. #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
  62. && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus) \
  63. && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
  64. # define BOOST_LIB_NAME boost_math_c99l
  65. # if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
  66. # define BOOST_DYN_LINK
  67. # endif
  68. # include <boost/config/auto_link.hpp>
  69. #endif
  70. #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
  71. && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
  72. # define BOOST_LIB_NAME boost_math_tr1
  73. # if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
  74. # define BOOST_DYN_LINK
  75. # endif
  76. # include <boost/config/auto_link.hpp>
  77. #endif
  78. #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
  79. && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
  80. # define BOOST_LIB_NAME boost_math_tr1f
  81. # if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
  82. # define BOOST_DYN_LINK
  83. # endif
  84. # include <boost/config/auto_link.hpp>
  85. #endif
  86. #if !defined(BOOST_MATH_TR1_NO_LIB) && !defined(BOOST_MATH_TR1_SOURCE) \
  87. && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus) \
  88. && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
  89. # define BOOST_LIB_NAME boost_math_tr1l
  90. # if defined(BOOST_MATH_TR1_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
  91. # define BOOST_DYN_LINK
  92. # endif
  93. # include <boost/config/auto_link.hpp>
  94. #endif
  95. #if !(defined(BOOST_INTEL) && defined(__APPLE__)) && !(defined(__FLT_EVAL_METHOD__) && !defined(__cplusplus))
  96. #if !defined(FLT_EVAL_METHOD)
  97. typedef float float_t;
  98. typedef double double_t;
  99. #elif FLT_EVAL_METHOD == -1
  100. typedef float float_t;
  101. typedef double double_t;
  102. #elif FLT_EVAL_METHOD == 0
  103. typedef float float_t;
  104. typedef double double_t;
  105. #elif FLT_EVAL_METHOD == 1
  106. typedef double float_t;
  107. typedef double double_t;
  108. #else
  109. typedef long double float_t;
  110. typedef long double double_t;
  111. #endif
  112. #endif
  113. // C99 Functions:
  114. double BOOST_MATH_TR1_DECL boost_acosh BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  115. float BOOST_MATH_TR1_DECL boost_acoshf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  116. long double BOOST_MATH_TR1_DECL boost_acoshl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  117. double BOOST_MATH_TR1_DECL boost_asinh BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  118. float BOOST_MATH_TR1_DECL boost_asinhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  119. long double BOOST_MATH_TR1_DECL boost_asinhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  120. double BOOST_MATH_TR1_DECL boost_atanh BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  121. float BOOST_MATH_TR1_DECL boost_atanhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  122. long double BOOST_MATH_TR1_DECL boost_atanhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  123. double BOOST_MATH_TR1_DECL boost_cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  124. float BOOST_MATH_TR1_DECL boost_cbrtf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  125. long double BOOST_MATH_TR1_DECL boost_cbrtl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  126. double BOOST_MATH_TR1_DECL boost_copysign BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
  127. float BOOST_MATH_TR1_DECL boost_copysignf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
  128. long double BOOST_MATH_TR1_DECL boost_copysignl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  129. double BOOST_MATH_TR1_DECL boost_erf BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  130. float BOOST_MATH_TR1_DECL boost_erff BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  131. long double BOOST_MATH_TR1_DECL boost_erfl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  132. double BOOST_MATH_TR1_DECL boost_erfc BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  133. float BOOST_MATH_TR1_DECL boost_erfcf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  134. long double BOOST_MATH_TR1_DECL boost_erfcl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  135. #if 0
  136. double BOOST_MATH_TR1_DECL boost_exp2 BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  137. float BOOST_MATH_TR1_DECL boost_exp2f BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  138. long double BOOST_MATH_TR1_DECL boost_exp2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  139. #endif
  140. double BOOST_MATH_TR1_DECL boost_expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  141. float BOOST_MATH_TR1_DECL boost_expm1f BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  142. long double BOOST_MATH_TR1_DECL boost_expm1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  143. #if 0
  144. double BOOST_MATH_TR1_DECL boost_fdim BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
  145. float BOOST_MATH_TR1_DECL boost_fdimf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
  146. long double BOOST_MATH_TR1_DECL boost_fdiml BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  147. double BOOST_MATH_TR1_DECL boost_fma BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y, double z) BOOST_MATH_C99_THROW_SPEC;
  148. float BOOST_MATH_TR1_DECL boost_fmaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y, float z) BOOST_MATH_C99_THROW_SPEC;
  149. 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;
  150. #endif
  151. double BOOST_MATH_TR1_DECL boost_fmax BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
  152. float BOOST_MATH_TR1_DECL boost_fmaxf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
  153. long double BOOST_MATH_TR1_DECL boost_fmaxl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  154. double BOOST_MATH_TR1_DECL boost_fmin BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
  155. float BOOST_MATH_TR1_DECL boost_fminf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
  156. long double BOOST_MATH_TR1_DECL boost_fminl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  157. double BOOST_MATH_TR1_DECL boost_hypot BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
  158. float BOOST_MATH_TR1_DECL boost_hypotf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
  159. long double BOOST_MATH_TR1_DECL boost_hypotl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  160. #if 0
  161. int BOOST_MATH_TR1_DECL boost_ilogb BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  162. int BOOST_MATH_TR1_DECL boost_ilogbf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  163. int BOOST_MATH_TR1_DECL boost_ilogbl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  164. #endif
  165. double BOOST_MATH_TR1_DECL boost_lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  166. float BOOST_MATH_TR1_DECL boost_lgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  167. long double BOOST_MATH_TR1_DECL boost_lgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  168. #ifdef BOOST_HAS_LONG_LONG
  169. #if 0
  170. ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llrint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  171. ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llrintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  172. ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llrintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  173. #endif
  174. ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llround BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  175. ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  176. ::boost::long_long_type BOOST_MATH_TR1_DECL boost_llroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  177. #endif
  178. double BOOST_MATH_TR1_DECL boost_log1p BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  179. float BOOST_MATH_TR1_DECL boost_log1pf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  180. long double BOOST_MATH_TR1_DECL boost_log1pl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  181. #if 0
  182. double BOOST_MATH_TR1_DECL log2 BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  183. float BOOST_MATH_TR1_DECL log2f BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  184. long double BOOST_MATH_TR1_DECL log2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  185. double BOOST_MATH_TR1_DECL logb BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  186. float BOOST_MATH_TR1_DECL logbf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  187. long double BOOST_MATH_TR1_DECL logbl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  188. long BOOST_MATH_TR1_DECL lrint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  189. long BOOST_MATH_TR1_DECL lrintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  190. long BOOST_MATH_TR1_DECL lrintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  191. #endif
  192. long BOOST_MATH_TR1_DECL boost_lround BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  193. long BOOST_MATH_TR1_DECL boost_lroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  194. long BOOST_MATH_TR1_DECL boost_lroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  195. #if 0
  196. double BOOST_MATH_TR1_DECL nan BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str) BOOST_MATH_C99_THROW_SPEC;
  197. float BOOST_MATH_TR1_DECL nanf BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str) BOOST_MATH_C99_THROW_SPEC;
  198. long double BOOST_MATH_TR1_DECL nanl BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str) BOOST_MATH_C99_THROW_SPEC;
  199. double BOOST_MATH_TR1_DECL nearbyint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  200. float BOOST_MATH_TR1_DECL nearbyintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  201. long double BOOST_MATH_TR1_DECL nearbyintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  202. #endif
  203. double BOOST_MATH_TR1_DECL boost_nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
  204. float BOOST_MATH_TR1_DECL boost_nextafterf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
  205. long double BOOST_MATH_TR1_DECL boost_nextafterl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  206. double BOOST_MATH_TR1_DECL boost_nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  207. float BOOST_MATH_TR1_DECL boost_nexttowardf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, long double y) BOOST_MATH_C99_THROW_SPEC;
  208. long double BOOST_MATH_TR1_DECL boost_nexttowardl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  209. #if 0
  210. double BOOST_MATH_TR1_DECL boost_remainder BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
  211. float BOOST_MATH_TR1_DECL boost_remainderf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
  212. long double BOOST_MATH_TR1_DECL boost_remainderl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  213. double BOOST_MATH_TR1_DECL boost_remquo BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y, int *pquo) BOOST_MATH_C99_THROW_SPEC;
  214. float BOOST_MATH_TR1_DECL boost_remquof BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y, int *pquo) BOOST_MATH_C99_THROW_SPEC;
  215. 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;
  216. double BOOST_MATH_TR1_DECL boost_rint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  217. float BOOST_MATH_TR1_DECL boost_rintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  218. long double BOOST_MATH_TR1_DECL boost_rintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  219. #endif
  220. double BOOST_MATH_TR1_DECL boost_round BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  221. float BOOST_MATH_TR1_DECL boost_roundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  222. long double BOOST_MATH_TR1_DECL boost_roundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  223. #if 0
  224. double BOOST_MATH_TR1_DECL boost_scalbln BOOST_PREVENT_MACRO_SUBSTITUTION(double x, long ex) BOOST_MATH_C99_THROW_SPEC;
  225. float BOOST_MATH_TR1_DECL boost_scalblnf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, long ex) BOOST_MATH_C99_THROW_SPEC;
  226. long double BOOST_MATH_TR1_DECL boost_scalblnl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long ex) BOOST_MATH_C99_THROW_SPEC;
  227. double BOOST_MATH_TR1_DECL boost_scalbn BOOST_PREVENT_MACRO_SUBSTITUTION(double x, int ex) BOOST_MATH_C99_THROW_SPEC;
  228. float BOOST_MATH_TR1_DECL boost_scalbnf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, int ex) BOOST_MATH_C99_THROW_SPEC;
  229. long double BOOST_MATH_TR1_DECL boost_scalbnl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, int ex) BOOST_MATH_C99_THROW_SPEC;
  230. #endif
  231. double BOOST_MATH_TR1_DECL boost_tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  232. float BOOST_MATH_TR1_DECL boost_tgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  233. long double BOOST_MATH_TR1_DECL boost_tgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  234. double BOOST_MATH_TR1_DECL boost_trunc BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  235. float BOOST_MATH_TR1_DECL boost_truncf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  236. long double BOOST_MATH_TR1_DECL boost_truncl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  237. // [5.2.1.1] associated Laguerre polynomials:
  238. double BOOST_MATH_TR1_DECL boost_assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, double x) BOOST_MATH_C99_THROW_SPEC;
  239. float BOOST_MATH_TR1_DECL boost_assoc_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, float x) BOOST_MATH_C99_THROW_SPEC;
  240. 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;
  241. // [5.2.1.2] associated Legendre functions:
  242. double BOOST_MATH_TR1_DECL boost_assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, double x) BOOST_MATH_C99_THROW_SPEC;
  243. float BOOST_MATH_TR1_DECL boost_assoc_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float x) BOOST_MATH_C99_THROW_SPEC;
  244. 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;
  245. // [5.2.1.3] beta function:
  246. double BOOST_MATH_TR1_DECL boost_beta BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y) BOOST_MATH_C99_THROW_SPEC;
  247. float BOOST_MATH_TR1_DECL boost_betaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y) BOOST_MATH_C99_THROW_SPEC;
  248. long double BOOST_MATH_TR1_DECL boost_betal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC;
  249. // [5.2.1.4] (complete) elliptic integral of the first kind:
  250. double BOOST_MATH_TR1_DECL boost_comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double k) BOOST_MATH_C99_THROW_SPEC;
  251. float BOOST_MATH_TR1_DECL boost_comp_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float k) BOOST_MATH_C99_THROW_SPEC;
  252. long double BOOST_MATH_TR1_DECL boost_comp_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k) BOOST_MATH_C99_THROW_SPEC;
  253. // [5.2.1.5] (complete) elliptic integral of the second kind:
  254. double BOOST_MATH_TR1_DECL boost_comp_ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(double k) BOOST_MATH_C99_THROW_SPEC;
  255. float BOOST_MATH_TR1_DECL boost_comp_ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(float k) BOOST_MATH_C99_THROW_SPEC;
  256. long double BOOST_MATH_TR1_DECL boost_comp_ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k) BOOST_MATH_C99_THROW_SPEC;
  257. // [5.2.1.6] (complete) elliptic integral of the third kind:
  258. double BOOST_MATH_TR1_DECL boost_comp_ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double nu) BOOST_MATH_C99_THROW_SPEC;
  259. float BOOST_MATH_TR1_DECL boost_comp_ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu) BOOST_MATH_C99_THROW_SPEC;
  260. 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;
  261. #if 0
  262. // [5.2.1.7] confluent hypergeometric functions:
  263. double BOOST_MATH_TR1_DECL conf_hyperg BOOST_PREVENT_MACRO_SUBSTITUTION(double a, double c, double x) BOOST_MATH_C99_THROW_SPEC;
  264. float BOOST_MATH_TR1_DECL conf_hypergf BOOST_PREVENT_MACRO_SUBSTITUTION(float a, float c, float x) BOOST_MATH_C99_THROW_SPEC;
  265. 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;
  266. #endif
  267. // [5.2.1.8] regular modified cylindrical Bessel functions:
  268. double BOOST_MATH_TR1_DECL boost_cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC;
  269. float BOOST_MATH_TR1_DECL boost_cyl_bessel_if BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC;
  270. 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;
  271. // [5.2.1.9] cylindrical Bessel functions (of the first kind):
  272. double BOOST_MATH_TR1_DECL boost_cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC;
  273. float BOOST_MATH_TR1_DECL boost_cyl_bessel_jf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC;
  274. 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;
  275. // [5.2.1.10] irregular modified cylindrical Bessel functions:
  276. double BOOST_MATH_TR1_DECL boost_cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC;
  277. float BOOST_MATH_TR1_DECL boost_cyl_bessel_kf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC;
  278. 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;
  279. // [5.2.1.11] cylindrical Neumann functions BOOST_MATH_C99_THROW_SPEC;
  280. // cylindrical Bessel functions (of the second kind):
  281. double BOOST_MATH_TR1_DECL boost_cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x) BOOST_MATH_C99_THROW_SPEC;
  282. float BOOST_MATH_TR1_DECL boost_cyl_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x) BOOST_MATH_C99_THROW_SPEC;
  283. long double BOOST_MATH_TR1_DECL boost_cyl_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x) BOOST_MATH_C99_THROW_SPEC;
  284. // [5.2.1.12] (incomplete) elliptic integral of the first kind:
  285. double BOOST_MATH_TR1_DECL boost_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi) BOOST_MATH_C99_THROW_SPEC;
  286. float BOOST_MATH_TR1_DECL boost_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi) BOOST_MATH_C99_THROW_SPEC;
  287. long double BOOST_MATH_TR1_DECL boost_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi) BOOST_MATH_C99_THROW_SPEC;
  288. // [5.2.1.13] (incomplete) elliptic integral of the second kind:
  289. double BOOST_MATH_TR1_DECL boost_ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi) BOOST_MATH_C99_THROW_SPEC;
  290. float BOOST_MATH_TR1_DECL boost_ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi) BOOST_MATH_C99_THROW_SPEC;
  291. long double BOOST_MATH_TR1_DECL boost_ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi) BOOST_MATH_C99_THROW_SPEC;
  292. // [5.2.1.14] (incomplete) elliptic integral of the third kind:
  293. double BOOST_MATH_TR1_DECL boost_ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double nu, double phi) BOOST_MATH_C99_THROW_SPEC;
  294. float BOOST_MATH_TR1_DECL boost_ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu, float phi) BOOST_MATH_C99_THROW_SPEC;
  295. 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;
  296. // [5.2.1.15] exponential integral:
  297. double BOOST_MATH_TR1_DECL boost_expint BOOST_PREVENT_MACRO_SUBSTITUTION(double x) BOOST_MATH_C99_THROW_SPEC;
  298. float BOOST_MATH_TR1_DECL boost_expintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x) BOOST_MATH_C99_THROW_SPEC;
  299. long double BOOST_MATH_TR1_DECL boost_expintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x) BOOST_MATH_C99_THROW_SPEC;
  300. // [5.2.1.16] Hermite polynomials:
  301. double BOOST_MATH_TR1_DECL boost_hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC;
  302. float BOOST_MATH_TR1_DECL boost_hermitef BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC;
  303. long double BOOST_MATH_TR1_DECL boost_hermitel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC;
  304. #if 0
  305. // [5.2.1.17] hypergeometric functions:
  306. double BOOST_MATH_TR1_DECL hyperg BOOST_PREVENT_MACRO_SUBSTITUTION(double a, double b, double c, double x) BOOST_MATH_C99_THROW_SPEC;
  307. float BOOST_MATH_TR1_DECL hypergf BOOST_PREVENT_MACRO_SUBSTITUTION(float a, float b, float c, float x) BOOST_MATH_C99_THROW_SPEC;
  308. long double BOOST_MATH_TR1_DECL hypergl BOOST_PREVENT_MACRO_SUBSTITUTION(long double a, long double b, long double c,
  309. long double x) BOOST_MATH_C99_THROW_SPEC;
  310. #endif
  311. // [5.2.1.18] Laguerre polynomials:
  312. double BOOST_MATH_TR1_DECL boost_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC;
  313. float BOOST_MATH_TR1_DECL boost_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC;
  314. long double BOOST_MATH_TR1_DECL boost_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC;
  315. // [5.2.1.19] Legendre polynomials:
  316. double BOOST_MATH_TR1_DECL boost_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, double x) BOOST_MATH_C99_THROW_SPEC;
  317. float BOOST_MATH_TR1_DECL boost_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, float x) BOOST_MATH_C99_THROW_SPEC;
  318. long double BOOST_MATH_TR1_DECL boost_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, long double x) BOOST_MATH_C99_THROW_SPEC;
  319. // [5.2.1.20] Riemann zeta function:
  320. double BOOST_MATH_TR1_DECL boost_riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(double) BOOST_MATH_C99_THROW_SPEC;
  321. float BOOST_MATH_TR1_DECL boost_riemann_zetaf BOOST_PREVENT_MACRO_SUBSTITUTION(float) BOOST_MATH_C99_THROW_SPEC;
  322. long double BOOST_MATH_TR1_DECL boost_riemann_zetal BOOST_PREVENT_MACRO_SUBSTITUTION(long double) BOOST_MATH_C99_THROW_SPEC;
  323. // [5.2.1.21] spherical Bessel functions (of the first kind):
  324. double BOOST_MATH_TR1_DECL boost_sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC;
  325. float BOOST_MATH_TR1_DECL boost_sph_besself BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC;
  326. long double BOOST_MATH_TR1_DECL boost_sph_bessell BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC;
  327. // [5.2.1.22] spherical associated Legendre functions:
  328. double BOOST_MATH_TR1_DECL boost_sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, double theta) BOOST_MATH_C99_THROW_SPEC;
  329. float BOOST_MATH_TR1_DECL boost_sph_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float theta) BOOST_MATH_C99_THROW_SPEC;
  330. 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;
  331. // [5.2.1.23] spherical Neumann functions BOOST_MATH_C99_THROW_SPEC;
  332. // spherical Bessel functions (of the second kind):
  333. double BOOST_MATH_TR1_DECL boost_sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x) BOOST_MATH_C99_THROW_SPEC;
  334. float BOOST_MATH_TR1_DECL boost_sph_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x) BOOST_MATH_C99_THROW_SPEC;
  335. long double BOOST_MATH_TR1_DECL boost_sph_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x) BOOST_MATH_C99_THROW_SPEC;
  336. #ifdef __cplusplus
  337. }}}} // namespaces
  338. #include <boost/math/tools/promotion.hpp>
  339. namespace boost{ namespace math{ namespace tr1{
  340. //
  341. // Declare overload of the functions which forward to the
  342. // C interfaces:
  343. //
  344. // C99 Functions:
  345. inline double acosh BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  346. { return boost::math::tr1::boost_acosh BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  347. inline float acoshf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  348. { return boost::math::tr1::boost_acoshf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  349. inline long double acoshl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  350. { return boost::math::tr1::boost_acoshl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  351. inline float acosh BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  352. { return boost::math::tr1::acoshf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  353. inline long double acosh BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  354. { return boost::math::tr1::acoshl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  355. template <class T>
  356. inline typename tools::promote_args<T>::type acosh BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  357. { return boost::math::tr1::acosh BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  358. inline double asinh BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  359. { return boost::math::tr1::boost_asinh BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  360. inline float asinhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  361. { return boost::math::tr1::boost_asinhf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  362. inline long double asinhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  363. { return boost::math::tr1::boost_asinhl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  364. inline float asinh BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  365. { return boost::math::tr1::asinhf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  366. inline long double asinh BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  367. { return boost::math::tr1::asinhl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  368. template <class T>
  369. inline typename tools::promote_args<T>::type asinh BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  370. { return boost::math::tr1::asinh BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  371. inline double atanh BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  372. { return boost::math::tr1::boost_atanh BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  373. inline float atanhf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  374. { return boost::math::tr1::boost_atanhf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  375. inline long double atanhl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  376. { return boost::math::tr1::boost_atanhl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  377. inline float atanh BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  378. { return boost::math::tr1::atanhf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  379. inline long double atanh BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  380. { return boost::math::tr1::atanhl(x); }
  381. template <class T>
  382. inline typename tools::promote_args<T>::type atanh BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  383. { return boost::math::tr1::atanh BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  384. inline double cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  385. { return boost::math::tr1::boost_cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  386. inline float cbrtf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  387. { return boost::math::tr1::boost_cbrtf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  388. inline long double cbrtl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  389. { return boost::math::tr1::boost_cbrtl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  390. inline float cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  391. { return boost::math::tr1::cbrtf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  392. inline long double cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  393. { return boost::math::tr1::cbrtl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  394. template <class T>
  395. inline typename tools::promote_args<T>::type cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  396. { return boost::math::tr1::cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  397. inline double copysign BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
  398. { return boost::math::tr1::boost_copysign BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  399. inline float copysignf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  400. { return boost::math::tr1::boost_copysignf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  401. inline long double copysignl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  402. { return boost::math::tr1::boost_copysignl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  403. inline float copysign BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  404. { return boost::math::tr1::copysignf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  405. inline long double copysign BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  406. { return boost::math::tr1::copysignl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  407. template <class T1, class T2>
  408. inline typename tools::promote_args<T1, T2>::type copysign BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
  409. { 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)); }
  410. inline double erf BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  411. { return boost::math::tr1::boost_erf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  412. inline float erff BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  413. { return boost::math::tr1::boost_erff BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  414. inline long double erfl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  415. { return boost::math::tr1::boost_erfl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  416. inline float erf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  417. { return boost::math::tr1::erff BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  418. inline long double erf BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  419. { return boost::math::tr1::erfl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  420. template <class T>
  421. inline typename tools::promote_args<T>::type erf BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  422. { return boost::math::tr1::erf BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  423. inline double erfc BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  424. { return boost::math::tr1::boost_erfc BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  425. inline float erfcf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  426. { return boost::math::tr1::boost_erfcf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  427. inline long double erfcl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  428. { return boost::math::tr1::boost_erfcl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  429. inline float erfc BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  430. { return boost::math::tr1::erfcf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  431. inline long double erfc BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  432. { return boost::math::tr1::erfcl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  433. template <class T>
  434. inline typename tools::promote_args<T>::type erfc BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  435. { return boost::math::tr1::erfc BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  436. #if 0
  437. double exp2 BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
  438. float exp2f BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
  439. long double exp2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
  440. #endif
  441. inline float expm1f BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  442. { return boost::math::tr1::boost_expm1f BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  443. inline double expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  444. { return boost::math::tr1::boost_expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  445. inline long double expm1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  446. { return boost::math::tr1::boost_expm1l BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  447. inline float expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  448. { return boost::math::tr1::expm1f BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  449. inline long double expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  450. { return boost::math::tr1::expm1l BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  451. template <class T>
  452. inline typename tools::promote_args<T>::type expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  453. { return boost::math::tr1::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  454. #if 0
  455. double fdim BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y);
  456. float fdimf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y);
  457. long double fdiml BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y);
  458. double fma BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y, double z);
  459. float fmaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y, float z);
  460. long double fmal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y, long double z);
  461. #endif
  462. inline double fmax BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
  463. { return boost::math::tr1::boost_fmax BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  464. inline float fmaxf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  465. { return boost::math::tr1::boost_fmaxf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  466. inline long double fmaxl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  467. { return boost::math::tr1::boost_fmaxl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  468. inline float fmax BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  469. { return boost::math::tr1::fmaxf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  470. inline long double fmax BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  471. { return boost::math::tr1::fmaxl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  472. template <class T1, class T2>
  473. inline typename tools::promote_args<T1, T2>::type fmax BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
  474. { 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)); }
  475. inline double fmin BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
  476. { return boost::math::tr1::boost_fmin BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  477. inline float fminf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  478. { return boost::math::tr1::boost_fminf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  479. inline long double fminl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  480. { return boost::math::tr1::boost_fminl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  481. inline float fmin BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  482. { return boost::math::tr1::fminf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  483. inline long double fmin BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  484. { return boost::math::tr1::fminl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  485. template <class T1, class T2>
  486. inline typename tools::promote_args<T1, T2>::type fmin BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
  487. { 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)); }
  488. inline float hypotf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  489. { return boost::math::tr1::boost_hypotf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  490. inline double hypot BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
  491. { return boost::math::tr1::boost_hypot BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  492. inline long double hypotl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  493. { return boost::math::tr1::boost_hypotl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  494. inline float hypot BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  495. { return boost::math::tr1::hypotf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  496. inline long double hypot BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  497. { return boost::math::tr1::hypotl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  498. template <class T1, class T2>
  499. inline typename tools::promote_args<T1, T2>::type hypot BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
  500. { 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)); }
  501. #if 0
  502. int ilogb BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
  503. int ilogbf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
  504. int ilogbl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
  505. #endif
  506. inline float lgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  507. { return boost::math::tr1::boost_lgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  508. inline double lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  509. { return boost::math::tr1::boost_lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  510. inline long double lgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  511. { return boost::math::tr1::boost_lgammal BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  512. inline float lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  513. { return boost::math::tr1::lgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  514. inline long double lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  515. { return boost::math::tr1::lgammal BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  516. template <class T>
  517. inline typename tools::promote_args<T>::type lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  518. { return boost::math::tr1::lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  519. #ifdef BOOST_HAS_LONG_LONG
  520. #if 0
  521. ::boost::long_long_type llrint BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
  522. ::boost::long_long_type llrintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
  523. ::boost::long_long_type llrintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
  524. #endif
  525. inline ::boost::long_long_type llroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  526. { return boost::math::tr1::boost_llroundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  527. inline ::boost::long_long_type llround BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  528. { return boost::math::tr1::boost_llround BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  529. inline ::boost::long_long_type llroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  530. { return boost::math::tr1::boost_llroundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  531. inline ::boost::long_long_type llround BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  532. { return boost::math::tr1::llroundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  533. inline ::boost::long_long_type llround BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  534. { return boost::math::tr1::llroundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  535. template <class T>
  536. inline ::boost::long_long_type llround BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  537. { return llround BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<double>(x)); }
  538. #endif
  539. inline float log1pf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  540. { return boost::math::tr1::boost_log1pf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  541. inline double log1p BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  542. { return boost::math::tr1::boost_log1p BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  543. inline long double log1pl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  544. { return boost::math::tr1::boost_log1pl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  545. inline float log1p BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  546. { return boost::math::tr1::log1pf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  547. inline long double log1p BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  548. { return boost::math::tr1::log1pl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  549. template <class T>
  550. inline typename tools::promote_args<T>::type log1p BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  551. { return boost::math::tr1::log1p BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  552. #if 0
  553. double log2 BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
  554. float log2f BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
  555. long double log2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
  556. double logb BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
  557. float logbf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
  558. long double logbl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
  559. long lrint BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
  560. long lrintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
  561. long lrintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
  562. #endif
  563. inline long lroundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  564. { return boost::math::tr1::boost_lroundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  565. inline long lround BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  566. { return boost::math::tr1::boost_lround BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  567. inline long lroundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  568. { return boost::math::tr1::boost_lroundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  569. inline long lround BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  570. { return boost::math::tr1::lroundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  571. inline long lround BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  572. { return boost::math::tr1::lroundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  573. template <class T>
  574. long lround BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  575. { return boost::math::tr1::lround BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<double>(x)); }
  576. #if 0
  577. double nan BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str);
  578. float nanf BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str);
  579. long double nanl BOOST_PREVENT_MACRO_SUBSTITUTION(const char *str);
  580. double nearbyint BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
  581. float nearbyintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
  582. long double nearbyintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
  583. #endif
  584. inline float nextafterf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  585. { return boost::math::tr1::boost_nextafterf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  586. inline double nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
  587. { return boost::math::tr1::boost_nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  588. inline long double nextafterl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  589. { return boost::math::tr1::boost_nextafterl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  590. inline float nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  591. { return boost::math::tr1::nextafterf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  592. inline long double nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  593. { return boost::math::tr1::nextafterl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  594. template <class T1, class T2>
  595. inline typename tools::promote_args<T1, T2>::type nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
  596. { 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)); }
  597. inline float nexttowardf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  598. { return boost::math::tr1::boost_nexttowardf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  599. inline double nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
  600. { return boost::math::tr1::boost_nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  601. inline long double nexttowardl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  602. { return boost::math::tr1::boost_nexttowardl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  603. inline float nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  604. { return boost::math::tr1::nexttowardf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  605. inline long double nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  606. { return boost::math::tr1::nexttowardl BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  607. template <class T1, class T2>
  608. inline typename tools::promote_args<T1, T2>::type nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(T1 x, T2 y)
  609. { return static_cast<typename tools::promote_args<T1, T2>::type>(boost::math::tr1::nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T1, T2>::type>(x), static_cast<long double>(y))); }
  610. #if 0
  611. double remainder BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y);
  612. float remainderf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y);
  613. long double remainderl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y);
  614. double remquo BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y, int *pquo);
  615. float remquof BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y, int *pquo);
  616. long double remquol BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y, int *pquo);
  617. double rint BOOST_PREVENT_MACRO_SUBSTITUTION(double x);
  618. float rintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x);
  619. long double rintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x);
  620. #endif
  621. inline float roundf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  622. { return boost::math::tr1::boost_roundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  623. inline double round BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  624. { return boost::math::tr1::boost_round BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  625. inline long double roundl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  626. { return boost::math::tr1::boost_roundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  627. inline float round BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  628. { return boost::math::tr1::roundf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  629. inline long double round BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  630. { return boost::math::tr1::roundl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  631. template <class T>
  632. inline typename tools::promote_args<T>::type round BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  633. { return boost::math::tr1::round BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  634. #if 0
  635. double scalbln BOOST_PREVENT_MACRO_SUBSTITUTION(double x, long ex);
  636. float scalblnf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, long ex);
  637. long double scalblnl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long ex);
  638. double scalbn BOOST_PREVENT_MACRO_SUBSTITUTION(double x, int ex);
  639. float scalbnf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, int ex);
  640. long double scalbnl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, int ex);
  641. #endif
  642. inline float tgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  643. { return boost::math::tr1::boost_tgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  644. inline double tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  645. { return boost::math::tr1::boost_tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  646. inline long double tgammal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  647. { return boost::math::tr1::boost_tgammal BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  648. inline float tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  649. { return boost::math::tr1::tgammaf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  650. inline long double tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  651. { return boost::math::tr1::tgammal BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  652. template <class T>
  653. inline typename tools::promote_args<T>::type tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  654. { return boost::math::tr1::tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  655. inline float truncf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  656. { return boost::math::tr1::boost_truncf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  657. inline double trunc BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  658. { return boost::math::tr1::boost_trunc BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  659. inline long double truncl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  660. { return boost::math::tr1::boost_truncl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  661. inline float trunc BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  662. { return boost::math::tr1::truncf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  663. inline long double trunc BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  664. { return boost::math::tr1::truncl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  665. template <class T>
  666. inline typename tools::promote_args<T>::type trunc BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  667. { return boost::math::tr1::trunc BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  668. # define NO_MACRO_EXPAND /**/
  669. // C99 macros defined as C++ templates
  670. template<class T> bool signbit NO_MACRO_EXPAND(T x)
  671. { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
  672. template<> bool BOOST_MATH_TR1_DECL signbit<float> NO_MACRO_EXPAND(float x);
  673. template<> bool BOOST_MATH_TR1_DECL signbit<double> NO_MACRO_EXPAND(double x);
  674. template<> bool BOOST_MATH_TR1_DECL signbit<long double> NO_MACRO_EXPAND(long double x);
  675. template<class T> int fpclassify NO_MACRO_EXPAND(T x)
  676. { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
  677. template<> int BOOST_MATH_TR1_DECL fpclassify<float> NO_MACRO_EXPAND(float x);
  678. template<> int BOOST_MATH_TR1_DECL fpclassify<double> NO_MACRO_EXPAND(double x);
  679. template<> int BOOST_MATH_TR1_DECL fpclassify<long double> NO_MACRO_EXPAND(long double x);
  680. template<class T> bool isfinite NO_MACRO_EXPAND(T x)
  681. { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
  682. template<> bool BOOST_MATH_TR1_DECL isfinite<float> NO_MACRO_EXPAND(float x);
  683. template<> bool BOOST_MATH_TR1_DECL isfinite<double> NO_MACRO_EXPAND(double x);
  684. template<> bool BOOST_MATH_TR1_DECL isfinite<long double> NO_MACRO_EXPAND(long double x);
  685. template<class T> bool isinf NO_MACRO_EXPAND(T x)
  686. { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
  687. template<> bool BOOST_MATH_TR1_DECL isinf<float> NO_MACRO_EXPAND(float x);
  688. template<> bool BOOST_MATH_TR1_DECL isinf<double> NO_MACRO_EXPAND(double x);
  689. template<> bool BOOST_MATH_TR1_DECL isinf<long double> NO_MACRO_EXPAND(long double x);
  690. template<class T> bool isnan NO_MACRO_EXPAND(T x)
  691. { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
  692. template<> bool BOOST_MATH_TR1_DECL isnan<float> NO_MACRO_EXPAND(float x);
  693. template<> bool BOOST_MATH_TR1_DECL isnan<double> NO_MACRO_EXPAND(double x);
  694. template<> bool BOOST_MATH_TR1_DECL isnan<long double> NO_MACRO_EXPAND(long double x);
  695. template<class T> bool isnormal NO_MACRO_EXPAND(T x)
  696. { BOOST_STATIC_ASSERT(sizeof(T) == 0); return false; } // must not be instantiated
  697. template<> bool BOOST_MATH_TR1_DECL isnormal<float> NO_MACRO_EXPAND(float x);
  698. template<> bool BOOST_MATH_TR1_DECL isnormal<double> NO_MACRO_EXPAND(double x);
  699. template<> bool BOOST_MATH_TR1_DECL isnormal<long double> NO_MACRO_EXPAND(long double x);
  700. #undef NO_MACRO_EXPAND
  701. // [5.2.1.1] associated Laguerre polynomials:
  702. inline float assoc_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, float x)
  703. { return boost::math::tr1::boost_assoc_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
  704. inline double assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, double x)
  705. { return boost::math::tr1::boost_assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
  706. inline long double assoc_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, long double x)
  707. { return boost::math::tr1::boost_assoc_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
  708. inline float assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, float x)
  709. { return boost::math::tr1::assoc_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
  710. inline long double assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, long double x)
  711. { return boost::math::tr1::assoc_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, x); }
  712. template <class T>
  713. inline typename tools::promote_args<T>::type assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, unsigned m, T x)
  714. { return boost::math::tr1::assoc_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, m, static_cast<typename tools::promote_args<T>::type>(x)); }
  715. // [5.2.1.2] associated Legendre functions:
  716. inline float assoc_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float x)
  717. { return boost::math::tr1::boost_assoc_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
  718. inline double assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, double x)
  719. { return boost::math::tr1::boost_assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
  720. inline long double assoc_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double x)
  721. { return boost::math::tr1::boost_assoc_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
  722. inline float assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float x)
  723. { return boost::math::tr1::assoc_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
  724. inline long double assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double x)
  725. { return boost::math::tr1::assoc_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, x); }
  726. template <class T>
  727. inline typename tools::promote_args<T>::type assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, T x)
  728. { return boost::math::tr1::assoc_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, static_cast<typename tools::promote_args<T>::type>(x)); }
  729. // [5.2.1.3] beta function:
  730. inline float betaf BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  731. { return boost::math::tr1::boost_betaf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  732. inline double beta BOOST_PREVENT_MACRO_SUBSTITUTION(double x, double y)
  733. { return boost::math::tr1::boost_beta BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  734. inline long double betal BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  735. { return boost::math::tr1::boost_betal BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  736. inline float beta BOOST_PREVENT_MACRO_SUBSTITUTION(float x, float y)
  737. { return boost::math::tr1::betaf BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  738. inline long double beta BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y)
  739. { return boost::math::tr1::betal BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); }
  740. template <class T1, class T2>
  741. inline typename tools::promote_args<T1, T2>::type beta BOOST_PREVENT_MACRO_SUBSTITUTION(T2 x, T1 y)
  742. { 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)); }
  743. // [5.2.1.4] (complete) elliptic integral of the first kind:
  744. inline float comp_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float k)
  745. { return boost::math::tr1::boost_comp_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
  746. inline double comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double k)
  747. { return boost::math::tr1::boost_comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
  748. inline long double comp_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k)
  749. { return boost::math::tr1::boost_comp_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
  750. inline float comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(float k)
  751. { return boost::math::tr1::comp_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
  752. inline long double comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(long double k)
  753. { return boost::math::tr1::comp_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(k); }
  754. template <class T>
  755. inline typename tools::promote_args<T>::type comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(T k)
  756. { return boost::math::tr1::comp_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(k)); }
  757. // [5.2.1.5] (complete) elliptic integral of the second kind:
  758. inline float comp_ellint_2f(float k)
  759. { return boost::math::tr1::boost_comp_ellint_2f(k); }
  760. inline double comp_ellint_2(double k)
  761. { return boost::math::tr1::boost_comp_ellint_2(k); }
  762. inline long double comp_ellint_2l(long double k)
  763. { return boost::math::tr1::boost_comp_ellint_2l(k); }
  764. inline float comp_ellint_2(float k)
  765. { return boost::math::tr1::comp_ellint_2f(k); }
  766. inline long double comp_ellint_2(long double k)
  767. { return boost::math::tr1::comp_ellint_2l(k); }
  768. template <class T>
  769. inline typename tools::promote_args<T>::type comp_ellint_2(T k)
  770. { return boost::math::tr1::comp_ellint_2(static_cast<typename tools::promote_args<T>::type> BOOST_PREVENT_MACRO_SUBSTITUTION(k)); }
  771. // [5.2.1.6] (complete) elliptic integral of the third kind:
  772. inline float comp_ellint_3f(float k, float nu)
  773. { return boost::math::tr1::boost_comp_ellint_3f(k, nu); }
  774. inline double comp_ellint_3(double k, double nu)
  775. { return boost::math::tr1::boost_comp_ellint_3(k, nu); }
  776. inline long double comp_ellint_3l(long double k, long double nu)
  777. { return boost::math::tr1::boost_comp_ellint_3l(k, nu); }
  778. inline float comp_ellint_3(float k, float nu)
  779. { return boost::math::tr1::comp_ellint_3f(k, nu); }
  780. inline long double comp_ellint_3(long double k, long double nu)
  781. { return boost::math::tr1::comp_ellint_3l(k, nu); }
  782. template <class T1, class T2>
  783. inline typename tools::promote_args<T1, T2>::type comp_ellint_3(T1 k, T2 nu)
  784. { 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)); }
  785. #if 0
  786. // [5.2.1.7] confluent hypergeometric functions:
  787. double conf_hyperg BOOST_PREVENT_MACRO_SUBSTITUTION(double a, double c, double x);
  788. float conf_hypergf BOOST_PREVENT_MACRO_SUBSTITUTION(float a, float c, float x);
  789. long double conf_hypergl BOOST_PREVENT_MACRO_SUBSTITUTION(long double a, long double c, long double x);
  790. #endif
  791. // [5.2.1.8] regular modified cylindrical Bessel functions:
  792. inline float cyl_bessel_if BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
  793. { return boost::math::tr1::boost_cyl_bessel_if BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  794. inline double cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x)
  795. { return boost::math::tr1::boost_cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  796. inline long double cyl_bessel_il BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
  797. { return boost::math::tr1::boost_cyl_bessel_il BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  798. inline float cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
  799. { return boost::math::tr1::cyl_bessel_if BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  800. inline long double cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
  801. { return boost::math::tr1::cyl_bessel_il BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  802. template <class T1, class T2>
  803. inline typename tools::promote_args<T1, T2>::type cyl_bessel_i BOOST_PREVENT_MACRO_SUBSTITUTION(T1 nu, T2 x)
  804. { 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)); }
  805. // [5.2.1.9] cylindrical Bessel functions (of the first kind):
  806. inline float cyl_bessel_jf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
  807. { return boost::math::tr1::boost_cyl_bessel_jf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  808. inline double cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x)
  809. { return boost::math::tr1::boost_cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  810. inline long double cyl_bessel_jl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
  811. { return boost::math::tr1::boost_cyl_bessel_jl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  812. inline float cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
  813. { return boost::math::tr1::cyl_bessel_jf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  814. inline long double cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
  815. { return boost::math::tr1::cyl_bessel_jl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  816. template <class T1, class T2>
  817. inline typename tools::promote_args<T1, T2>::type cyl_bessel_j BOOST_PREVENT_MACRO_SUBSTITUTION(T1 nu, T2 x)
  818. { 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)); }
  819. // [5.2.1.10] irregular modified cylindrical Bessel functions:
  820. inline float cyl_bessel_kf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
  821. { return boost::math::tr1::boost_cyl_bessel_kf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  822. inline double cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x)
  823. { return boost::math::tr1::boost_cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  824. inline long double cyl_bessel_kl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
  825. { return boost::math::tr1::boost_cyl_bessel_kl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  826. inline float cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
  827. { return boost::math::tr1::cyl_bessel_kf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  828. inline long double cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
  829. { return boost::math::tr1::cyl_bessel_kl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  830. template <class T1, class T2>
  831. inline typename tools::promote_args<T1, T2>::type cyl_bessel_k BOOST_PREVENT_MACRO_SUBSTITUTION(T1 nu, T2 x)
  832. { 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)); }
  833. // [5.2.1.11] cylindrical Neumann functions;
  834. // cylindrical Bessel functions (of the second kind):
  835. inline float cyl_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
  836. { return boost::math::tr1::boost_cyl_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  837. inline double cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(double nu, double x)
  838. { return boost::math::tr1::boost_cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  839. inline long double cyl_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
  840. { return boost::math::tr1::boost_cyl_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  841. inline float cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(float nu, float x)
  842. { return boost::math::tr1::cyl_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  843. inline long double cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(long double nu, long double x)
  844. { return boost::math::tr1::cyl_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(nu, x); }
  845. template <class T1, class T2>
  846. inline typename tools::promote_args<T1, T2>::type cyl_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(T1 nu, T2 x)
  847. { 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)); }
  848. // [5.2.1.12] (incomplete) elliptic integral of the first kind:
  849. inline float ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi)
  850. { return boost::math::tr1::boost_ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  851. inline double ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi)
  852. { return boost::math::tr1::boost_ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  853. inline long double ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi)
  854. { return boost::math::tr1::boost_ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  855. inline float ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi)
  856. { return boost::math::tr1::ellint_1f BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  857. inline long double ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi)
  858. { return boost::math::tr1::ellint_1l BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  859. template <class T1, class T2>
  860. inline typename tools::promote_args<T1, T2>::type ellint_1 BOOST_PREVENT_MACRO_SUBSTITUTION(T1 k, T2 phi)
  861. { 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)); }
  862. // [5.2.1.13] (incomplete) elliptic integral of the second kind:
  863. inline float ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi)
  864. { return boost::math::tr1::boost_ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  865. inline double ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double phi)
  866. { return boost::math::tr1::boost_ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  867. inline long double ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi)
  868. { return boost::math::tr1::boost_ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  869. inline float ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float phi)
  870. { return boost::math::tr1::ellint_2f BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  871. inline long double ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double phi)
  872. { return boost::math::tr1::ellint_2l BOOST_PREVENT_MACRO_SUBSTITUTION(k, phi); }
  873. template <class T1, class T2>
  874. inline typename tools::promote_args<T1, T2>::type ellint_2 BOOST_PREVENT_MACRO_SUBSTITUTION(T1 k, T2 phi)
  875. { 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)); }
  876. // [5.2.1.14] (incomplete) elliptic integral of the third kind:
  877. inline float ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu, float phi)
  878. { return boost::math::tr1::boost_ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
  879. inline double ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(double k, double nu, double phi)
  880. { return boost::math::tr1::boost_ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
  881. inline long double ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double nu, long double phi)
  882. { return boost::math::tr1::boost_ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
  883. inline float ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(float k, float nu, float phi)
  884. { return boost::math::tr1::ellint_3f BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
  885. inline long double ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(long double k, long double nu, long double phi)
  886. { return boost::math::tr1::ellint_3l BOOST_PREVENT_MACRO_SUBSTITUTION(k, nu, phi); }
  887. template <class T1, class T2, class T3>
  888. inline typename tools::promote_args<T1, T2, T3>::type ellint_3 BOOST_PREVENT_MACRO_SUBSTITUTION(T1 k, T2 nu, T3 phi)
  889. { 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)); }
  890. // [5.2.1.15] exponential integral:
  891. inline float expintf BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  892. { return boost::math::tr1::boost_expintf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  893. inline double expint BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
  894. { return boost::math::tr1::boost_expint BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  895. inline long double expintl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  896. { return boost::math::tr1::boost_expintl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  897. inline float expint BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
  898. { return boost::math::tr1::expintf BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  899. inline long double expint BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
  900. { return boost::math::tr1::expintl BOOST_PREVENT_MACRO_SUBSTITUTION(x); }
  901. template <class T>
  902. inline typename tools::promote_args<T>::type expint BOOST_PREVENT_MACRO_SUBSTITUTION(T x)
  903. { return boost::math::tr1::expint BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(x)); }
  904. // [5.2.1.16] Hermite polynomials:
  905. inline float hermitef BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
  906. { return boost::math::tr1::boost_hermitef BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  907. inline double hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x)
  908. { return boost::math::tr1::boost_hermite BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  909. inline long double hermitel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
  910. { return boost::math::tr1::boost_hermitel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  911. inline float hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
  912. { return boost::math::tr1::hermitef BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  913. inline long double hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
  914. { return boost::math::tr1::hermitel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  915. template <class T>
  916. inline typename tools::promote_args<T>::type hermite BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, T x)
  917. { return boost::math::tr1::hermite BOOST_PREVENT_MACRO_SUBSTITUTION(n, static_cast<typename tools::promote_args<T>::type>(x)); }
  918. #if 0
  919. // [5.2.1.17] hypergeometric functions:
  920. double hyperg BOOST_PREVENT_MACRO_SUBSTITUTION(double a, double b, double c, double x);
  921. float hypergf BOOST_PREVENT_MACRO_SUBSTITUTION(float a, float b, float c, float x);
  922. long double hypergl BOOST_PREVENT_MACRO_SUBSTITUTION(long double a, long double b, long double c,
  923. long double x);
  924. #endif
  925. // [5.2.1.18] Laguerre polynomials:
  926. inline float laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
  927. { return boost::math::tr1::boost_laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  928. inline double laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x)
  929. { return boost::math::tr1::boost_laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  930. inline long double laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
  931. { return boost::math::tr1::boost_laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  932. inline float laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
  933. { return boost::math::tr1::laguerref BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  934. inline long double laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
  935. { return boost::math::tr1::laguerrel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  936. template <class T>
  937. inline typename tools::promote_args<T>::type laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, T x)
  938. { return boost::math::tr1::laguerre BOOST_PREVENT_MACRO_SUBSTITUTION(n, static_cast<typename tools::promote_args<T>::type>(x)); }
  939. // [5.2.1.19] Legendre polynomials:
  940. inline float legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, float x)
  941. { return boost::math::tr1::boost_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
  942. inline double legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, double x)
  943. { return boost::math::tr1::boost_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
  944. inline long double legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, long double x)
  945. { return boost::math::tr1::boost_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
  946. inline float legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, float x)
  947. { return boost::math::tr1::legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
  948. inline long double legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, long double x)
  949. { return boost::math::tr1::legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, x); }
  950. template <class T>
  951. inline typename tools::promote_args<T>::type legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, T x)
  952. { return boost::math::tr1::legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, static_cast<typename tools::promote_args<T>::type>(x)); }
  953. // [5.2.1.20] Riemann zeta function:
  954. inline float riemann_zetaf BOOST_PREVENT_MACRO_SUBSTITUTION(float z)
  955. { return boost::math::tr1::boost_riemann_zetaf BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
  956. inline double riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(double z)
  957. { return boost::math::tr1::boost_riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
  958. inline long double riemann_zetal BOOST_PREVENT_MACRO_SUBSTITUTION(long double z)
  959. { return boost::math::tr1::boost_riemann_zetal BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
  960. inline float riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(float z)
  961. { return boost::math::tr1::riemann_zetaf BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
  962. inline long double riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(long double z)
  963. { return boost::math::tr1::riemann_zetal BOOST_PREVENT_MACRO_SUBSTITUTION(z); }
  964. template <class T>
  965. inline typename tools::promote_args<T>::type riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(T z)
  966. { return boost::math::tr1::riemann_zeta BOOST_PREVENT_MACRO_SUBSTITUTION(static_cast<typename tools::promote_args<T>::type>(z)); }
  967. // [5.2.1.21] spherical Bessel functions (of the first kind):
  968. inline float sph_besself BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
  969. { return boost::math::tr1::boost_sph_besself BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  970. inline double sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x)
  971. { return boost::math::tr1::boost_sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  972. inline long double sph_bessell BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
  973. { return boost::math::tr1::boost_sph_bessell BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  974. inline float sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
  975. { return boost::math::tr1::sph_besself BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  976. inline long double sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
  977. { return boost::math::tr1::sph_bessell BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  978. template <class T>
  979. inline typename tools::promote_args<T>::type sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, T x)
  980. { return boost::math::tr1::sph_bessel BOOST_PREVENT_MACRO_SUBSTITUTION(n, static_cast<typename tools::promote_args<T>::type>(x)); }
  981. // [5.2.1.22] spherical associated Legendre functions:
  982. inline float sph_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float theta)
  983. { return boost::math::tr1::boost_sph_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
  984. inline double sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, double theta)
  985. { return boost::math::tr1::boost_sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
  986. inline long double sph_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double theta)
  987. { return boost::math::tr1::boost_sph_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
  988. inline float sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, float theta)
  989. { return boost::math::tr1::sph_legendref BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
  990. inline long double sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, long double theta)
  991. { return boost::math::tr1::sph_legendrel BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, theta); }
  992. template <class T>
  993. inline typename tools::promote_args<T>::type sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l, unsigned m, T theta)
  994. { return boost::math::tr1::sph_legendre BOOST_PREVENT_MACRO_SUBSTITUTION(l, m, static_cast<typename tools::promote_args<T>::type>(theta)); }
  995. // [5.2.1.23] spherical Neumann functions;
  996. // spherical Bessel functions (of the second kind):
  997. inline float sph_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
  998. { return boost::math::tr1::boost_sph_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  999. inline double sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, double x)
  1000. { return boost::math::tr1::boost_sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  1001. inline long double sph_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
  1002. { return boost::math::tr1::boost_sph_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  1003. inline float sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, float x)
  1004. { return boost::math::tr1::sph_neumannf BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  1005. inline long double sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, long double x)
  1006. { return boost::math::tr1::sph_neumannl BOOST_PREVENT_MACRO_SUBSTITUTION(n, x); }
  1007. template <class T>
  1008. inline typename tools::promote_args<T>::type sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned n, T x)
  1009. { return boost::math::tr1::sph_neumann BOOST_PREVENT_MACRO_SUBSTITUTION(n, static_cast<typename tools::promote_args<T>::type>(x)); }
  1010. }}} // namespaces
  1011. #else // __cplusplus
  1012. #include <boost/math/tr1_c_macros.ipp>
  1013. #endif // __cplusplus
  1014. #endif // BOOST_MATH_TR1_HPP