29#ifndef _GLIBCXX_TR1_CMATH
30#define _GLIBCXX_TR1_CMATH 1
33#pragma GCC system_header
41#ifdef _GLIBCXX_USE_C99_MATH_TR1
151namespace std _GLIBCXX_VISIBILITY(default)
153_GLIBCXX_BEGIN_NAMESPACE_VERSION
157#if _GLIBCXX_USE_C99_MATH_TR1
308#if _GLIBCXX_USE_C99_MATH
309#if !_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC
312 template<
typename _Tp>
313 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
317 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
318 return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
319 FP_SUBNORMAL, FP_ZERO, __type(__f));
322 template<
typename _Tp>
323 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
327 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
328 return __builtin_isfinite(__type(__f));
331 template<
typename _Tp>
332 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
336 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
337 return __builtin_isinf(__type(__f));
340 template<
typename _Tp>
341 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
345 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
346 return __builtin_isnan(__type(__f));
349 template<
typename _Tp>
350 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
354 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
355 return __builtin_isnormal(__type(__f));
358 template<
typename _Tp>
359 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
363 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
364 return __builtin_signbit(__type(__f));
367 template<
typename _Tp>
368 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
370 isgreater(_Tp __f1, _Tp __f2)
372 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
373 return __builtin_isgreater(__type(__f1), __type(__f2));
376 template<
typename _Tp>
377 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
379 isgreaterequal(_Tp __f1, _Tp __f2)
381 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
382 return __builtin_isgreaterequal(__type(__f1), __type(__f2));
385 template<
typename _Tp>
386 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
388 isless(_Tp __f1, _Tp __f2)
390 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
391 return __builtin_isless(__type(__f1), __type(__f2));
394 template<
typename _Tp>
395 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
397 islessequal(_Tp __f1, _Tp __f2)
399 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
400 return __builtin_islessequal(__type(__f1), __type(__f2));
403 template<
typename _Tp>
404 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
406 islessgreater(_Tp __f1, _Tp __f2)
408 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
409 return __builtin_islessgreater(__type(__f1), __type(__f2));
412 template<
typename _Tp>
413 inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
415 isunordered(_Tp __f1, _Tp __f2)
417 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
418 return __builtin_isunordered(__type(__f1), __type(__f2));
424#if _GLIBCXX_USE_C99_MATH_TR1
453#if __cplusplus >= 201103L
482 using std::nearbyint;
483 using std::nextafter;
484 using std::nexttoward;
485 using std::remainder;
498#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
501 {
return __builtin_acoshf(__x); }
504 acosh(
long double __x)
505 {
return __builtin_acoshl(__x); }
508 template<
typename _Tp>
509 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
512 {
return __builtin_acosh(__x); }
514#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
517 {
return __builtin_asinhf(__x); }
520 asinh(
long double __x)
521 {
return __builtin_asinhl(__x); }
524 template<
typename _Tp>
525 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
528 {
return __builtin_asinh(__x); }
530#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
533 {
return __builtin_atanhf(__x); }
536 atanh(
long double __x)
537 {
return __builtin_atanhl(__x); }
540 template<
typename _Tp>
541 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
544 {
return __builtin_atanh(__x); }
546#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
549 {
return __builtin_cbrtf(__x); }
552 cbrt(
long double __x)
553 {
return __builtin_cbrtl(__x); }
556 template<
typename _Tp>
557 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
560 {
return __builtin_cbrt(__x); }
562#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
564 copysign(
float __x,
float __y)
565 {
return __builtin_copysignf(__x, __y); }
568 copysign(
long double __x,
long double __y)
569 {
return __builtin_copysignl(__x, __y); }
572 template<
typename _Tp,
typename _Up>
573 inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
574 copysign(_Tp __x, _Up __y)
576 typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
577 return copysign(__type(__x), __type(__y));
580#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
583 {
return __builtin_erff(__x); }
587 {
return __builtin_erfl(__x); }
590 template<
typename _Tp>
591 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
594 {
return __builtin_erf(__x); }
596#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
599 {
return __builtin_erfcf(__x); }
602 erfc(
long double __x)
603 {
return __builtin_erfcl(__x); }
606 template<
typename _Tp>
607 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
610 {
return __builtin_erfc(__x); }
612#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
615 {
return __builtin_exp2f(__x); }
618 exp2(
long double __x)
619 {
return __builtin_exp2l(__x); }
622 template<
typename _Tp>
623 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
626 {
return __builtin_exp2(__x); }
628#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
631 {
return __builtin_expm1f(__x); }
634 expm1(
long double __x)
635 {
return __builtin_expm1l(__x); }
638 template<
typename _Tp>
639 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
642 {
return __builtin_expm1(__x); }
644#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
646 fdim(
float __x,
float __y)
647 {
return __builtin_fdimf(__x, __y); }
650 fdim(
long double __x,
long double __y)
651 {
return __builtin_fdiml(__x, __y); }
654 template<
typename _Tp,
typename _Up>
655 inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
656 fdim(_Tp __x, _Up __y)
658 typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
659 return fdim(__type(__x), __type(__y));
662#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
664 fma(
float __x,
float __y,
float __z)
665 {
return __builtin_fmaf(__x, __y, __z); }
668 fma(
long double __x,
long double __y,
long double __z)
669 {
return __builtin_fmal(__x, __y, __z); }
672 template<
typename _Tp,
typename _Up,
typename _Vp>
673 inline typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type
674 fma(_Tp __x, _Up __y, _Vp __z)
676 typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type;
677 return fma(__type(__x), __type(__y), __type(__z));
680#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
682 fmax(
float __x,
float __y)
683 {
return __builtin_fmaxf(__x, __y); }
686 fmax(
long double __x,
long double __y)
687 {
return __builtin_fmaxl(__x, __y); }
690 template<
typename _Tp,
typename _Up>
691 inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
692 fmax(_Tp __x, _Up __y)
694 typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
695 return fmax(__type(__x), __type(__y));
698#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
700 fmin(
float __x,
float __y)
701 {
return __builtin_fminf(__x, __y); }
704 fmin(
long double __x,
long double __y)
705 {
return __builtin_fminl(__x, __y); }
708 template<
typename _Tp,
typename _Up>
709 inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
710 fmin(_Tp __x, _Up __y)
712 typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
713 return fmin(__type(__x), __type(__y));
716#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
718 hypot(
float __x,
float __y)
719 {
return __builtin_hypotf(__x, __y); }
722 hypot(
long double __x,
long double __y)
723 {
return __builtin_hypotl(__x, __y); }
726 template<
typename _Tp,
typename _Up>
727 inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
728 hypot(_Tp __y, _Up __x)
730 typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
731 return hypot(__type(__y), __type(__x));
734#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
737 {
return __builtin_ilogbf(__x); }
740 ilogb(
long double __x)
741 {
return __builtin_ilogbl(__x); }
744 template<
typename _Tp>
745 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
748 {
return __builtin_ilogb(__x); }
750#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
753 {
return __builtin_lgammaf(__x); }
756 lgamma(
long double __x)
757 {
return __builtin_lgammal(__x); }
760 template<
typename _Tp>
761 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
764 {
return __builtin_lgamma(__x); }
766#pragma GCC diagnostic push
767#pragma GCC diagnostic ignored "-Wlong-long"
769#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
772 {
return __builtin_llrintf(__x); }
775 llrint(
long double __x)
776 {
return __builtin_llrintl(__x); }
779 template<
typename _Tp>
780 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
783 {
return __builtin_llrint(__x); }
785#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
788 {
return __builtin_llroundf(__x); }
791 llround(
long double __x)
792 {
return __builtin_llroundl(__x); }
795 template<
typename _Tp>
796 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
799 {
return __builtin_llround(__x); }
800#pragma GCC diagnostic pop
802#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
805 {
return __builtin_log1pf(__x); }
808 log1p(
long double __x)
809 {
return __builtin_log1pl(__x); }
812 template<
typename _Tp>
813 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
816 {
return __builtin_log1p(__x); }
819#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
822 {
return __builtin_log2f(__x); }
825 log2(
long double __x)
826 {
return __builtin_log2l(__x); }
829 template<
typename _Tp>
830 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
833 {
return __builtin_log2(__x); }
835#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
838 {
return __builtin_logbf(__x); }
841 logb(
long double __x)
842 {
return __builtin_logbl(__x); }
845 template<
typename _Tp>
846 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
850 return __builtin_logb(__x);
853#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
856 {
return __builtin_lrintf(__x); }
859 lrint(
long double __x)
860 {
return __builtin_lrintl(__x); }
863 template<
typename _Tp>
864 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
867 {
return __builtin_lrint(__x); }
869#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
872 {
return __builtin_lroundf(__x); }
875 lround(
long double __x)
876 {
return __builtin_lroundl(__x); }
879 template<
typename _Tp>
880 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
883 {
return __builtin_lround(__x); }
885#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
888 {
return __builtin_nearbyintf(__x); }
891 nearbyint(
long double __x)
892 {
return __builtin_nearbyintl(__x); }
895 template<
typename _Tp>
896 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
899 {
return __builtin_nearbyint(__x); }
901#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
903 nextafter(
float __x,
float __y)
904 {
return __builtin_nextafterf(__x, __y); }
907 nextafter(
long double __x,
long double __y)
908 {
return __builtin_nextafterl(__x, __y); }
911 template<
typename _Tp,
typename _Up>
912 inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
913 nextafter(_Tp __x, _Up __y)
915 typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
916 return nextafter(__type(__x), __type(__y));
919#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
921 nexttoward(
float __x,
long double __y)
922 {
return __builtin_nexttowardf(__x, __y); }
925 nexttoward(
long double __x,
long double __y)
926 {
return __builtin_nexttowardl(__x, __y); }
929 template<
typename _Tp>
930 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
932 nexttoward(_Tp __x,
long double __y)
933 {
return __builtin_nexttoward(__x, __y); }
935#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
937 remainder(
float __x,
float __y)
938 {
return __builtin_remainderf(__x, __y); }
941 remainder(
long double __x,
long double __y)
942 {
return __builtin_remainderl(__x, __y); }
945 template<
typename _Tp,
typename _Up>
946 inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
947 remainder(_Tp __x, _Up __y)
949 typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
950 return remainder(__type(__x), __type(__y));
953#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
955 remquo(
float __x,
float __y,
int* __pquo)
956 {
return __builtin_remquof(__x, __y, __pquo); }
959 remquo(
long double __x,
long double __y,
int* __pquo)
960 {
return __builtin_remquol(__x, __y, __pquo); }
963 template<
typename _Tp,
typename _Up>
964 inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
965 remquo(_Tp __x, _Up __y,
int* __pquo)
967 typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
968 return remquo(__type(__x), __type(__y), __pquo);
971#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
974 {
return __builtin_rintf(__x); }
977 rint(
long double __x)
978 {
return __builtin_rintl(__x); }
981 template<
typename _Tp>
982 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
985 {
return __builtin_rint(__x); }
987#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
990 {
return __builtin_roundf(__x); }
993 round(
long double __x)
994 {
return __builtin_roundl(__x); }
997 template<
typename _Tp>
998 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
1001 {
return __builtin_round(__x); }
1003#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
1005 scalbln(
float __x,
long __ex)
1006 {
return __builtin_scalblnf(__x, __ex); }
1009 scalbln(
long double __x,
long __ex)
1010 {
return __builtin_scalblnl(__x, __ex); }
1013 template<
typename _Tp>
1014 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
1016 scalbln(_Tp __x,
long __ex)
1017 {
return __builtin_scalbln(__x, __ex); }
1019#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
1021 scalbn(
float __x,
int __ex)
1022 {
return __builtin_scalbnf(__x, __ex); }
1025 scalbn(
long double __x,
int __ex)
1026 {
return __builtin_scalbnl(__x, __ex); }
1029 template<
typename _Tp>
1030 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
1032 scalbn(_Tp __x,
int __ex)
1033 {
return __builtin_scalbn(__x, __ex); }
1035#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
1038 {
return __builtin_tgammaf(__x); }
1041 tgamma(
long double __x)
1042 {
return __builtin_tgammal(__x); }
1045 template<
typename _Tp>
1046 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
1049 {
return __builtin_tgamma(__x); }
1051#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
1054 {
return __builtin_truncf(__x); }
1057 trunc(
long double __x)
1058 {
return __builtin_truncl(__x); }
1061 template<
typename _Tp>
1062 inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
1065 {
return __builtin_trunc(__x); }
1087#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
1089 pow(
float __x,
float __y)
1093 pow(
long double __x,
long double __y)
1097 template<
typename _Tp,
typename _Up>
1098 inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
1099 pow(_Tp __x, _Up __y)
1101 typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
1102 return std::pow(__type(__x), __type(__y));
1105#if __cplusplus >= 201103L
1114#ifndef __CORRECT_ISO_CPP_MATH_H_PROTO
1115#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
1118 {
return __builtin_fabsf(__x); }
1121 fabs(
long double __x)
1122 {
return __builtin_fabsl(__x); }
1126 template<
typename _Tp>
1127 inline typename __gnu_cxx::__promote<_Tp>::__type
1139_GLIBCXX_END_NAMESPACE_VERSION
1149#if _GLIBCXX_USE_STD_SPEC_FUNCS
1151namespace std _GLIBCXX_VISIBILITY(default)
1153_GLIBCXX_BEGIN_NAMESPACE_VERSION
1242_GLIBCXX_END_NAMESPACE_VERSION
1249#include <tr1/type_traits>
1251#include <tr1/gamma.tcc>
1252#include <tr1/bessel_function.tcc>
1253#include <tr1/beta_function.tcc>
1254#include <tr1/ell_integral.tcc>
1255#include <tr1/exp_integral.tcc>
1256#include <tr1/legendre_function.tcc>
1257#include <tr1/modified_bessel_func.tcc>
1258#include <tr1/poly_hermite.tcc>
1259#include <tr1/poly_laguerre.tcc>
1260#include <tr1/riemann_zeta.tcc>
1262namespace std _GLIBCXX_VISIBILITY(default)
1264_GLIBCXX_BEGIN_NAMESPACE_VERSION
1272 assoc_laguerref(
unsigned int __n,
unsigned int __m,
float __x)
1273 {
return __detail::__assoc_laguerre<float>(__n, __m, __x); }
1276 assoc_laguerrel(
unsigned int __n,
unsigned int __m,
long double __x)
1278 return __detail::__assoc_laguerre<long double>(__n, __m, __x);
1282 template<
typename _Tp>
1283 inline typename __gnu_cxx::__promote<_Tp>::__type
1286 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1287 return __detail::__assoc_laguerre<__type>(__n, __m, __x);
1292 {
return __detail::__assoc_legendre_p<float>(__l, __m, __x); }
1295 assoc_legendrel(
unsigned int __l,
unsigned int __m,
long double __x)
1296 {
return __detail::__assoc_legendre_p<long double>(__l, __m, __x); }
1299 template<
typename _Tp>
1300 inline typename __gnu_cxx::__promote<_Tp>::__type
1303 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1304 return __detail::__assoc_legendre_p<__type>(__l, __m, __x);
1308 betaf(
float __x,
float __y)
1309 {
return __detail::__beta<float>(__x, __y); }
1312 betal(
long double __x,
long double __y)
1313 {
return __detail::__beta<long double>(__x, __y); }
1316 template<
typename _Tpx,
typename _Tpy>
1317 inline typename __gnu_cxx::__promote_2<_Tpx, _Tpy>::__type
1320 typedef typename __gnu_cxx::__promote_2<_Tpx, _Tpy>::__type __type;
1321 return __detail::__beta<__type>(__x, __y);
1326 {
return __detail::__comp_ellint_1<float>(__k); }
1329 comp_ellint_1l(
long double __k)
1330 {
return __detail::__comp_ellint_1<long double>(__k); }
1333 template<
typename _Tp>
1334 inline typename __gnu_cxx::__promote<_Tp>::__type
1337 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1338 return __detail::__comp_ellint_1<__type>(__k);
1343 {
return __detail::__comp_ellint_2<float>(__k); }
1346 comp_ellint_2l(
long double __k)
1347 {
return __detail::__comp_ellint_2<long double>(__k); }
1350 template<
typename _Tp>
1351 inline typename __gnu_cxx::__promote<_Tp>::__type
1354 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1355 return __detail::__comp_ellint_2<__type>(__k);
1360 {
return __detail::__comp_ellint_3<float>(__k, __nu); }
1363 comp_ellint_3l(
long double __k,
long double __nu)
1364 {
return __detail::__comp_ellint_3<long double>(__k, __nu); }
1367 template<
typename _Tp,
typename _Tpn>
1368 inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type
1371 typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type;
1372 return __detail::__comp_ellint_3<__type>(__k, __nu);
1377 {
return __detail::__cyl_bessel_i<float>(__nu, __x); }
1380 cyl_bessel_il(
long double __nu,
long double __x)
1381 {
return __detail::__cyl_bessel_i<long double>(__nu, __x); }
1384 template<
typename _Tpnu,
typename _Tp>
1385 inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type
1388 typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type;
1389 return __detail::__cyl_bessel_i<__type>(__nu, __x);
1394 {
return __detail::__cyl_bessel_j<float>(__nu, __x); }
1397 cyl_bessel_jl(
long double __nu,
long double __x)
1398 {
return __detail::__cyl_bessel_j<long double>(__nu, __x); }
1401 template<
typename _Tpnu,
typename _Tp>
1402 inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type
1405 typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type;
1406 return __detail::__cyl_bessel_j<__type>(__nu, __x);
1411 {
return __detail::__cyl_bessel_k<float>(__nu, __x); }
1414 cyl_bessel_kl(
long double __nu,
long double __x)
1415 {
return __detail::__cyl_bessel_k<long double>(__nu, __x); }
1418 template<
typename _Tpnu,
typename _Tp>
1419 inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type
1422 typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type;
1423 return __detail::__cyl_bessel_k<__type>(__nu, __x);
1428 {
return __detail::__cyl_neumann_n<float>(__nu, __x); }
1431 cyl_neumannl(
long double __nu,
long double __x)
1432 {
return __detail::__cyl_neumann_n<long double>(__nu, __x); }
1435 template<
typename _Tpnu,
typename _Tp>
1436 inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type
1439 typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type;
1440 return __detail::__cyl_neumann_n<__type>(__nu, __x);
1445 {
return __detail::__ellint_1<float>(__k, __phi); }
1448 ellint_1l(
long double __k,
long double __phi)
1449 {
return __detail::__ellint_1<long double>(__k, __phi); }
1452 template<
typename _Tp,
typename _Tpp>
1453 inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type
1456 typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type;
1457 return __detail::__ellint_1<__type>(__k, __phi);
1462 {
return __detail::__ellint_2<float>(__k, __phi); }
1465 ellint_2l(
long double __k,
long double __phi)
1466 {
return __detail::__ellint_2<long double>(__k, __phi); }
1469 template<
typename _Tp,
typename _Tpp>
1470 inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type
1473 typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type;
1474 return __detail::__ellint_2<__type>(__k, __phi);
1478 ellint_3f(
float __k,
float __nu,
float __phi)
1479 {
return __detail::__ellint_3<float>(__k, __nu, __phi); }
1482 ellint_3l(
long double __k,
long double __nu,
long double __phi)
1483 {
return __detail::__ellint_3<long double>(__k, __nu, __phi); }
1486 template<
typename _Tp,
typename _Tpn,
typename _Tpp>
1487 inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type
1490 typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type;
1491 return __detail::__ellint_3<__type>(__k, __nu, __phi);
1496 {
return __detail::__expint<float>(__x); }
1499 expintl(
long double __x)
1500 {
return __detail::__expint<long double>(__x); }
1503 template<
typename _Tp>
1504 inline typename __gnu_cxx::__promote<_Tp>::__type
1507 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1508 return __detail::__expint<__type>(__x);
1512 hermitef(
unsigned int __n,
float __x)
1513 {
return __detail::__poly_hermite<float>(__n, __x); }
1516 hermitel(
unsigned int __n,
long double __x)
1517 {
return __detail::__poly_hermite<long double>(__n, __x); }
1520 template<
typename _Tp>
1521 inline typename __gnu_cxx::__promote<_Tp>::__type
1524 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1525 return __detail::__poly_hermite<__type>(__n, __x);
1530 {
return __detail::__laguerre<float>(__n, __x); }
1533 laguerrel(
unsigned int __n,
long double __x)
1534 {
return __detail::__laguerre<long double>(__n, __x); }
1537 template<
typename _Tp>
1538 inline typename __gnu_cxx::__promote<_Tp>::__type
1541 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1542 return __detail::__laguerre<__type>(__n, __x);
1547 {
return __detail::__poly_legendre_p<float>(__n, __x); }
1550 legendrel(
unsigned int __n,
long double __x)
1551 {
return __detail::__poly_legendre_p<long double>(__n, __x); }
1554 template<
typename _Tp>
1555 inline typename __gnu_cxx::__promote<_Tp>::__type
1558 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1559 return __detail::__poly_legendre_p<__type>(__n, __x);
1564 {
return __detail::__riemann_zeta<float>(__x); }
1567 riemann_zetal(
long double __x)
1568 {
return __detail::__riemann_zeta<long double>(__x); }
1571 template<
typename _Tp>
1572 inline typename __gnu_cxx::__promote<_Tp>::__type
1575 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1576 return __detail::__riemann_zeta<__type>(__x);
1581 {
return __detail::__sph_bessel<float>(__n, __x); }
1584 sph_bessell(
unsigned int __n,
long double __x)
1585 {
return __detail::__sph_bessel<long double>(__n, __x); }
1588 template<
typename _Tp>
1589 inline typename __gnu_cxx::__promote<_Tp>::__type
1592 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1593 return __detail::__sph_bessel<__type>(__n, __x);
1597 sph_legendref(
unsigned int __l,
unsigned int __m,
float __theta)
1598 {
return __detail::__sph_legendre<float>(__l, __m, __theta); }
1601 sph_legendrel(
unsigned int __l,
unsigned int __m,
long double __theta)
1602 {
return __detail::__sph_legendre<long double>(__l, __m, __theta); }
1605 template<
typename _Tp>
1606 inline typename __gnu_cxx::__promote<_Tp>::__type
1609 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1610 return __detail::__sph_legendre<__type>(__l, __m, __theta);
1615 {
return __detail::__sph_neumann<float>(__n, __x); }
1618 sph_neumannl(
unsigned int __n,
long double __x)
1619 {
return __detail::__sph_neumann<long double>(__n, __x); }
1622 template<
typename _Tp>
1623 inline typename __gnu_cxx::__promote<_Tp>::__type
1626 typedef typename __gnu_cxx::__promote<_Tp>::__type __type;
1627 return __detail::__sph_neumann<__type>(__n, __x);
1634_GLIBCXX_END_NAMESPACE_VERSION
1639#if _GLIBCXX_USE_STD_SPEC_FUNCS && !defined(__STRICT_ANSI__)
1640namespace std _GLIBCXX_VISIBILITY(default)
1642_GLIBCXX_BEGIN_NAMESPACE_VERSION
1655_GLIBCXX_END_NAMESPACE_VERSION
1662#include <tr1/type_traits>
1664#include <tr1/hypergeometric.tcc>
1666namespace std _GLIBCXX_VISIBILITY(default)
1668_GLIBCXX_BEGIN_NAMESPACE_VERSION
1678 {
return __detail::__conf_hyperg<float>(__a, __c, __x); }
1681 conf_hypergl(
long double __a,
long double __c,
long double __x)
1682 {
return __detail::__conf_hyperg<long double>(__a, __c, __x); }
1685 template<
typename _Tpa,
typename _Tpc,
typename _Tp>
1686 inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type
1689 typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type;
1690 return __detail::__conf_hyperg<__type>(__a, __c, __x);
1694 hypergf(
float __a,
float __b,
float __c,
float __x)
1695 {
return __detail::__hyperg<float>(__a, __b, __c, __x); }
1698 hypergl(
long double __a,
long double __b,
long double __c,
long double __x)
1699 {
return __detail::__hyperg<long double>(__a, __b, __c, __x); }
1702 template<
typename _Tpa,
typename _Tpb,
typename _Tpc,
typename _Tp>
1703 inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type
1704 hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x)
1706 typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type __type;
1707 return __detail::__hyperg<__type>(__a, __b, __c, __x);
1714_GLIBCXX_END_NAMESPACE_VERSION
complex< _Tp > log10(const complex< _Tp > &)
Return complex base 10 logarithm of z.
complex< _Tp > sin(const complex< _Tp > &)
Return complex sine of z.
complex< _Tp > log(const complex< _Tp > &)
Return complex natural logarithm of z.
complex< _Tp > tan(const complex< _Tp > &)
Return complex tangent of z.
complex< _Tp > exp(const complex< _Tp > &)
Return complex base e exponential of z.
complex< _Tp > cosh(const complex< _Tp > &)
Return complex hyperbolic cosine of z.
complex< _Tp > tanh(const complex< _Tp > &)
Return complex hyperbolic tangent of z.
complex< _Tp > pow(const complex< _Tp > &, int)
Return x to the y'th power.
complex< _Tp > sinh(const complex< _Tp > &)
Return complex hyperbolic sine of z.
complex< _Tp > cos(const complex< _Tp > &)
Return complex cosine of z.
complex< _Tp > sqrt(const complex< _Tp > &)
Return complex square root of z.
__gnu_cxx::__promote< _Tp >::__type sph_bessel(unsigned int __n, _Tp __x)
long double conf_hypergl(long double __a, long double __c, long double __x)
long double sph_bessell(unsigned int __n, long double __x)
float betaf(float __a, float __b)
long double expintl(long double __x)
float cyl_bessel_jf(float __nu, float __x)
__gnu_cxx::__promote_2< _Tpnu, _Tp >::__type cyl_bessel_k(_Tpnu __nu, _Tp __x)
float ellint_3f(float __k, float __nu, float __phi)
Return the incomplete elliptic integral of the third kind for float argument.
long double legendrel(unsigned int __l, long double __x)
long double comp_ellint_3l(long double __k, long double __nu)
Return the complete elliptic integral of the third kind for long double modulus k.
long double riemann_zetal(long double __s)
float cyl_bessel_kf(float __nu, float __x)
float comp_ellint_2f(float __k)
long double hermitel(unsigned int __n, long double __x)
__gnu_cxx::__promote_2< _Tp, _Tpp >::__type ellint_1(_Tp __k, _Tpp __phi)
long double sph_legendrel(unsigned int __l, unsigned int __m, long double __theta)
float ellint_1f(float __k, float __phi)
__gnu_cxx::__promote_2< _Tpnu, _Tp >::__type cyl_neumann(_Tpnu __nu, _Tp __x)
float assoc_legendref(unsigned int __l, unsigned int __m, float __x)
long double sph_neumannl(unsigned int __n, long double __x)
__gnu_cxx::__promote_4< _Tpa, _Tpb, _Tpc, _Tp >::__type hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x)
long double comp_ellint_2l(long double __k)
__gnu_cxx::__promote< _Tp >::__type comp_ellint_2(_Tp __k)
float sph_besself(unsigned int __n, float __x)
long double assoc_legendrel(unsigned int __l, unsigned int __m, long double __x)
__gnu_cxx::__promote< _Tp >::__type legendre(unsigned int __l, _Tp __x)
float ellint_2f(float __k, float __phi)
Return the incomplete elliptic integral of the second kind for float argument.
__gnu_cxx::__promote_3< _Tp, _Tpn, _Tpp >::__type ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi)
Return the incomplete elliptic integral of the third kind .
long double ellint_2l(long double __k, long double __phi)
Return the incomplete elliptic integral of the second kind .
float cyl_neumannf(float __nu, float __x)
__gnu_cxx::__promote_2< _Tpa, _Tpb >::__type beta(_Tpa __a, _Tpb __b)
long double comp_ellint_1l(long double __k)
float comp_ellint_3f(float __k, float __nu)
Return the complete elliptic integral of the third kind for float modulus k.
float sph_neumannf(unsigned int __n, float __x)
__gnu_cxx::__promote< _Tp >::__type expint(_Tp __x)
long double ellint_1l(long double __k, long double __phi)
float comp_ellint_1f(float __k)
long double betal(long double __a, long double __b)
__gnu_cxx::__promote_3< _Tpa, _Tpc, _Tp >::__type conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x)
float hermitef(unsigned int __n, float __x)
__gnu_cxx::__promote< _Tp >::__type riemann_zeta(_Tp __s)
long double hypergl(long double __a, long double __b, long double __c, long double __x)
long double ellint_3l(long double __k, long double __nu, long double __phi)
Return the incomplete elliptic integral of the third kind .
float sph_legendref(unsigned int __l, unsigned int __m, float __theta)
__gnu_cxx::__promote< _Tp >::__type sph_neumann(unsigned int __n, _Tp __x)
float cyl_bessel_if(float __nu, float __x)
long double laguerrel(unsigned int __n, long double __x)
long double cyl_bessel_il(long double __nu, long double __x)
__gnu_cxx::__promote< _Tp >::__type assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x)
float conf_hypergf(float __a, float __c, float __x)
__gnu_cxx::__promote_2< _Tp, _Tpn >::__type comp_ellint_3(_Tp __k, _Tpn __nu)
__gnu_cxx::__promote< _Tp >::__type sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta)
long double cyl_bessel_kl(long double __nu, long double __x)
float hypergf(float __a, float __b, float __c, float __x)
long double assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x)
__gnu_cxx::__promote< _Tp >::__type hermite(unsigned int __n, _Tp __x)
__gnu_cxx::__promote_2< _Tpnu, _Tp >::__type cyl_bessel_j(_Tpnu __nu, _Tp __x)
float laguerref(unsigned int __n, float __x)
long double cyl_bessel_jl(long double __nu, long double __x)
__gnu_cxx::__promote< _Tp >::__type comp_ellint_1(_Tp __k)
__gnu_cxx::__promote_2< _Tp, _Tpp >::__type ellint_2(_Tp __k, _Tpp __phi)
__gnu_cxx::__promote< _Tp >::__type laguerre(unsigned int __n, _Tp __x)
float legendref(unsigned int __l, float __x)
__gnu_cxx::__promote_2< _Tpnu, _Tp >::__type cyl_bessel_i(_Tpnu __nu, _Tp __x)
__gnu_cxx::__promote< _Tp >::__type assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x)
float assoc_laguerref(unsigned int __n, unsigned int __m, float __x)
long double cyl_neumannl(long double __nu, long double __x)
float riemann_zetaf(float __s)
__gnu_cxx::__promote_2< _Tp, _Tpn >::__type comp_ellint_3(_Tp __k, _Tpn __nu)
5.2.1.6 Complete elliptic integrals of the third kind.
__gnu_cxx::__promote< _Tp >::__type expint(_Tp __x)
5.2.1.15 Exponential integrals.
__gnu_cxx::__promote< _Tp >::__type assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x)
5.2.1.2 Associated Legendre functions.
__gnu_cxx::__promote< _Tp >::__type comp_ellint_1(_Tp __k)
5.2.1.4 Complete elliptic integrals of the first kind.
__gnu_cxx::__promote< _Tp >::__type sph_bessel(unsigned int __n, _Tp __x)
5.2.1.21 Spherical Bessel functions.
__gnu_cxx::__promote_2< _Tpnu, _Tp >::__type cyl_neumann(_Tpnu __nu, _Tp __x)
5.2.1.11 Cylindrical Neumann functions.
__gnu_cxx::__promote< _Tp >::__type assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x)
5.2.1.1 Associated Laguerre polynomials.
__gnu_cxx::__promote_2< _Tp, _Tpp >::__type ellint_2(_Tp __k, _Tpp __phi)
5.2.1.13 Incomplete elliptic integrals of the second kind.
__gnu_cxx::__promote_2< _Tpnu, _Tp >::__type cyl_bessel_j(_Tpnu __nu, _Tp __x)
5.2.1.9 Cylindrical Bessel functions (of the first kind).
__gnu_cxx::__promote_2< _Tpnu, _Tp >::__type cyl_bessel_i(_Tpnu __nu, _Tp __x)
5.2.1.8 Regular modified cylindrical Bessel functions.
__gnu_cxx::__promote< _Tp >::__type riemann_zeta(_Tp __x)
5.2.1.20 Riemann zeta function.
__gnu_cxx::__promote_3< _Tp, _Tpn, _Tpp >::__type ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi)
5.2.1.14 Incomplete elliptic integrals of the third kind.
__gnu_cxx::__promote_2< _Tpx, _Tpy >::__type beta(_Tpx __x, _Tpy __y)
5.2.1.3 Beta functions.
__gnu_cxx::__promote_2< _Tpnu, _Tp >::__type cyl_bessel_k(_Tpnu __nu, _Tp __x)
5.2.1.10 Irregular modified cylindrical Bessel functions.
__gnu_cxx::__promote_2< _Tp, _Tpp >::__type ellint_1(_Tp __k, _Tpp __phi)
5.2.1.12 Incomplete elliptic integrals of the first kind.
__gnu_cxx::__promote< _Tp >::__type comp_ellint_2(_Tp __k)
5.2.1.5 Complete elliptic integrals of the second kind.
__gnu_cxx::__promote< _Tp >::__type legendre(unsigned int __n, _Tp __x)
5.2.1.19 Legendre polynomials.
__gnu_cxx::__promote< _Tp >::__type hermite(unsigned int __n, _Tp __x)
5.2.1.16 Hermite polynomials.
__gnu_cxx::__promote< _Tp >::__type sph_neumann(unsigned int __n, _Tp __x)
5.2.1.23 Spherical Neumann functions.
__gnu_cxx::__promote< _Tp >::__type sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta)
5.2.1.22 Spherical associated Legendre functions.
__gnu_cxx::__promote< _Tp >::__type laguerre(unsigned int __n, _Tp __x)
5.2.1.18 Laguerre polynomials.
ISO C++ entities toplevel namespace is std.
_Tp fabs(const std::complex< _Tp > &__z)
fabs(__z) TR1 8.1.8 [tr.c99.cmplx.fabs]
ISO C++ TR1 entities toplevel namespace is std::tr1.
long double conf_hypergl(long double __a, long double __c, long double __x)
__gnu_cxx::__promote_4< _Tpa, _Tpb, _Tpc, _Tp >::__type hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x)
__gnu_cxx::__promote_3< _Tpa, _Tpc, _Tp >::__type conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x)
long double hypergl(long double __a, long double __b, long double __c, long double __x)
float conf_hypergf(float __a, float __c, float __x)
float hypergf(float __a, float __b, float __c, float __x)