tr1.hpp 80 KB

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