summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/tr1/cmath
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-26 06:27:35 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-26 06:27:35 +0000
commit4a77b438b4940a0102089412442acecd0dc078db (patch)
treebac7112eda84cb436582837155e41f192bcb0515 /libstdc++-v3/include/tr1/cmath
parent2e1a9c49cdc2a483f24ebf3d92f199c73c4405de (diff)
downloadppe42-gcc-4a77b438b4940a0102089412442acecd0dc078db.tar.gz
ppe42-gcc-4a77b438b4940a0102089412442acecd0dc078db.zip
2008-03-25 Benjamin Kosnik <bkoz@redhat.com>
* scripts/run_doxygen: Remove html_output_dir. Downgrade to Doxygen 1.5.1. * doc/doxygen/style.css: Delete. * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.5.1. (INPUT): Update. (PREDEFINED): Update. (HTML_OUTPUT): Remove html_output_dir, use html. (HTML_STYLESHEET): Remove style.css. * doc/doxygen/tables.html: Remove style.css use. * doc/doxygen/mainpage.html: Nested lists for Namespaces and Classes. * doc/doxygen/doxygroups.cc: Namespace edits. * doc/doxygen/Intro.3: Correct typo. * doc/xml/api.xml: Add gcc-4.3 links. * doc/html/api.html: Regenerate. * include/debug/debug.h: Document namepaces here. * include/parallel/base.h: Same. * include/ext/typelist.h: Same. * include/ext/pb_ds/tag_and_trait.hpp: Same. * include/tr1_impl/random: Adjust line break. * include/tr1_impl/unordered_map: Correct and or add markup. * include/tr1_impl/boost_shared_ptr.h: Correct and or add markup. * include/tr1_impl/functional_hash.h: Same. * include/tr1_impl/cmath: Same. * include/tr1_impl/functional: Same. * include/tr1_impl/unordered_set: Same. * include/tr1_impl/complex: Same. * include/tr1_impl/type_traits: Same. * include/tr1_impl/regex: Same. * include/tr1_impl/array: Same. * include/std/tuple: Same. * include/std/date_time: Same. * include/std/system_error: Same. * include/std/type_traits: Same. * include/ext/enc_filebuf.h: Same. * include/ext/throw_allocator.h: Same. * include/ext/pool_allocator.h: Same. * include/ext/bitmap_allocator.h: Same. * include/ext/concurrence.h: Same. * include/ext/codecvt_specializations.h: Same. * include/ext/stdio_sync_filebuf.h: Same. * include/ext/array_allocator.h: Same. * include/ext/mt_allocator.h: Same. * include/bits/locale_classes.h: Same. * include/bits/locale_facets.h: Same. * include/bits/codecvt.h: Same. * include/bits/char_traits.h: Same. * include/bits/allocator.h: Same. * include/bits/locale_facets_nonio.h: Same. * include/tr1/poly_laguerre.tcc: Same. * include/tr1/riemann_zeta.tcc: Same. * include/tr1/beta_function.tcc: Same. * include/tr1/tuple: Same. * include/tr1/exp_integral.tcc: Same. * include/tr1/gamma.tcc: Same. * include/tr1/hypergeometric.tcc: Same. * include/tr1/modified_bessel_func.tcc: Same. * include/tr1/legendre_function.tcc: Same. * include/tr1/type_traits: Same. * include/tr1/special_function_util.h: Same. * include/tr1/bessel_function.tcc: Same. * include/tr1/cmath: Same. * include/tr1/poly_hermite.tcc: Same. * include/tr1/ell_integral.tcc: Same. * config/abi/compatibility.h: Adjust file name. * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Adjust line numbers. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Same. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133544 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/tr1/cmath')
-rw-r--r--libstdc++-v3/include/tr1/cmath64
1 files changed, 32 insertions, 32 deletions
diff --git a/libstdc++-v3/include/tr1/cmath b/libstdc++-v3/include/tr1/cmath
index 81a3bfefde6..63e6a2e5fda 100644
--- a/libstdc++-v3/include/tr1/cmath
+++ b/libstdc++-v3/include/tr1/cmath
@@ -1,6 +1,6 @@
// TR1 cmath -*- C++ -*-
-// Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+// Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -56,15 +56,10 @@
# undef _GLIBCXX_INCLUDE_AS_TR1
#endif
-/**
- * @defgroup tr1_math_spec_func Mathematical Special Functions
- * A collection of advanced mathematical special functions.
- * @{
- */
#include <bits/stl_algobase.h>
#include <limits>
-
#include <tr1/type_traits>
+
#include <tr1/gamma.tcc>
#include <tr1/bessel_function.tcc>
#include <tr1/beta_function.tcc>
@@ -77,12 +72,16 @@
#include <tr1/poly_laguerre.tcc>
#include <tr1/riemann_zeta.tcc>
-// namespace std::tr1
namespace std
{
namespace tr1
{
- // 5.2.1.1 Associated Laguerre polynomials.
+ /**
+ * @addtogroup tr1_math_spec_func Mathematical Special Functions
+ * A collection of advanced mathematical special functions.
+ * @{
+ */
+
inline float
assoc_laguerref(unsigned int __n, unsigned int __m, float __x)
{ return __detail::__assoc_laguerre<float>(__n, __m, __x); }
@@ -93,6 +92,7 @@ namespace tr1
return __detail::__assoc_laguerre<long double>(__n, __m, __x);
}
+ /// 5.2.1.1 Associated Laguerre polynomials.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x)
@@ -101,7 +101,6 @@ namespace tr1
return __detail::__assoc_laguerre<__type>(__n, __m, __x);
}
- // 5.2.1.2 Associated Legendre functions.
inline float
assoc_legendref(unsigned int __l, unsigned int __m, float __x)
{ return __detail::__assoc_legendre_p<float>(__l, __m, __x); }
@@ -110,6 +109,7 @@ namespace tr1
assoc_legendrel(unsigned int __l, unsigned int __m, long double __x)
{ return __detail::__assoc_legendre_p<long double>(__l, __m, __x); }
+ /// 5.2.1.2 Associated Legendre functions.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x)
@@ -118,7 +118,6 @@ namespace tr1
return __detail::__assoc_legendre_p<__type>(__l, __m, __x);
}
- // 5.2.1.3 Beta functions.
inline float
betaf(float __x, float __y)
{ return __detail::__beta<float>(__x, __y); }
@@ -127,6 +126,7 @@ namespace tr1
betal(long double __x, long double __y)
{ return __detail::__beta<long double>(__x, __y); }
+ /// 5.2.1.3 Beta functions.
template<typename _Tpx, typename _Tpy>
inline typename __gnu_cxx::__promote_2<_Tpx, _Tpy>::__type
beta(_Tpx __x, _Tpy __y)
@@ -135,7 +135,6 @@ namespace tr1
return __detail::__beta<__type>(__x, __y);
}
- // 5.2.1.4 Complete elliptic integrals of the first kind.
inline float
comp_ellint_1f(float __k)
{ return __detail::__comp_ellint_1<float>(__k); }
@@ -144,6 +143,7 @@ namespace tr1
comp_ellint_1l(long double __k)
{ return __detail::__comp_ellint_1<long double>(__k); }
+ /// 5.2.1.4 Complete elliptic integrals of the first kind.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
comp_ellint_1(_Tp __k)
@@ -152,7 +152,6 @@ namespace tr1
return __detail::__comp_ellint_1<__type>(__k);
}
- // 5.2.1.5 Complete elliptic integrals of the second kind.
inline float
comp_ellint_2f(float __k)
{ return __detail::__comp_ellint_2<float>(__k); }
@@ -161,6 +160,7 @@ namespace tr1
comp_ellint_2l(long double __k)
{ return __detail::__comp_ellint_2<long double>(__k); }
+ /// 5.2.1.5 Complete elliptic integrals of the second kind.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
comp_ellint_2(_Tp __k)
@@ -169,7 +169,6 @@ namespace tr1
return __detail::__comp_ellint_2<__type>(__k);
}
- // 5.2.1.6 Complete elliptic integrals of the third kind.
inline float
comp_ellint_3f(float __k, float __nu)
{ return __detail::__comp_ellint_3<float>(__k, __nu); }
@@ -178,6 +177,7 @@ namespace tr1
comp_ellint_3l(long double __k, long double __nu)
{ return __detail::__comp_ellint_3<long double>(__k, __nu); }
+ /// 5.2.1.6 Complete elliptic integrals of the third kind.
template<typename _Tp, typename _Tpn>
inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type
comp_ellint_3(_Tp __k, _Tpn __nu)
@@ -186,7 +186,6 @@ namespace tr1
return __detail::__comp_ellint_3<__type>(__k, __nu);
}
- // 5.2.1.7 Confluent hypergeometric functions.
inline float
conf_hypergf(float __a, float __c, float __x)
{ return __detail::__conf_hyperg<float>(__a, __c, __x); }
@@ -195,6 +194,7 @@ namespace tr1
conf_hypergl(long double __a, long double __c, long double __x)
{ return __detail::__conf_hyperg<long double>(__a, __c, __x); }
+ /// 5.2.1.7 Confluent hypergeometric functions.
template<typename _Tpa, typename _Tpc, typename _Tp>
inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type
conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x)
@@ -203,7 +203,6 @@ namespace tr1
return __detail::__conf_hyperg<__type>(__a, __c, __x);
}
- // 5.2.1.8 Regular modified cylindrical Bessel functions.
inline float
cyl_bessel_if(float __nu, float __x)
{ return __detail::__cyl_bessel_i<float>(__nu, __x); }
@@ -212,6 +211,7 @@ namespace tr1
cyl_bessel_il(long double __nu, long double __x)
{ return __detail::__cyl_bessel_i<long double>(__nu, __x); }
+ /// 5.2.1.8 Regular modified cylindrical Bessel functions.
template<typename _Tpnu, typename _Tp>
inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type
cyl_bessel_i(_Tpnu __nu, _Tp __x)
@@ -220,7 +220,6 @@ namespace tr1
return __detail::__cyl_bessel_i<__type>(__nu, __x);
}
- // 5.2.1.9 Cylindrical Bessel functions (of the first kind).
inline float
cyl_bessel_jf(float __nu, float __x)
{ return __detail::__cyl_bessel_j<float>(__nu, __x); }
@@ -229,6 +228,7 @@ namespace tr1
cyl_bessel_jl(long double __nu, long double __x)
{ return __detail::__cyl_bessel_j<long double>(__nu, __x); }
+ /// 5.2.1.9 Cylindrical Bessel functions (of the first kind).
template<typename _Tpnu, typename _Tp>
inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type
cyl_bessel_j(_Tpnu __nu, _Tp __x)
@@ -237,7 +237,6 @@ namespace tr1
return __detail::__cyl_bessel_j<__type>(__nu, __x);
}
- // 5.2.1.10 Irregular modified cylindrical Bessel functions.
inline float
cyl_bessel_kf(float __nu, float __x)
{ return __detail::__cyl_bessel_k<float>(__nu, __x); }
@@ -246,6 +245,7 @@ namespace tr1
cyl_bessel_kl(long double __nu, long double __x)
{ return __detail::__cyl_bessel_k<long double>(__nu, __x); }
+ /// 5.2.1.10 Irregular modified cylindrical Bessel functions.
template<typename _Tpnu, typename _Tp>
inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type
cyl_bessel_k(_Tpnu __nu, _Tp __x)
@@ -254,7 +254,6 @@ namespace tr1
return __detail::__cyl_bessel_k<__type>(__nu, __x);
}
- // 5.2.1.11 Cylindrical Neumann functions.
inline float
cyl_neumannf(float __nu, float __x)
{ return __detail::__cyl_neumann_n<float>(__nu, __x); }
@@ -263,6 +262,7 @@ namespace tr1
cyl_neumannl(long double __nu, long double __x)
{ return __detail::__cyl_neumann_n<long double>(__nu, __x); }
+ /// 5.2.1.11 Cylindrical Neumann functions.
template<typename _Tpnu, typename _Tp>
inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type
cyl_neumann(_Tpnu __nu, _Tp __x)
@@ -271,7 +271,6 @@ namespace tr1
return __detail::__cyl_neumann_n<__type>(__nu, __x);
}
- // 5.2.1.12 Incomplete elliptic integrals of the first kind.
inline float
ellint_1f(float __k, float __phi)
{ return __detail::__ellint_1<float>(__k, __phi); }
@@ -280,6 +279,7 @@ namespace tr1
ellint_1l(long double __k, long double __phi)
{ return __detail::__ellint_1<long double>(__k, __phi); }
+ /// 5.2.1.12 Incomplete elliptic integrals of the first kind.
template<typename _Tp, typename _Tpp>
inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type
ellint_1(_Tp __k, _Tpp __phi)
@@ -288,7 +288,6 @@ namespace tr1
return __detail::__ellint_1<__type>(__k, __phi);
}
- // 5.2.1.13 Incomplete elliptic integrals of the second kind.
inline float
ellint_2f(float __k, float __phi)
{ return __detail::__ellint_2<float>(__k, __phi); }
@@ -297,6 +296,7 @@ namespace tr1
ellint_2l(long double __k, long double __phi)
{ return __detail::__ellint_2<long double>(__k, __phi); }
+ /// 5.2.1.13 Incomplete elliptic integrals of the second kind.
template<typename _Tp, typename _Tpp>
inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type
ellint_2(_Tp __k, _Tpp __phi)
@@ -305,7 +305,6 @@ namespace tr1
return __detail::__ellint_2<__type>(__k, __phi);
}
- // 5.2.1.14 Incomplete elliptic integrals of the third kind.
inline float
ellint_3f(float __k, float __nu, float __phi)
{ return __detail::__ellint_3<float>(__k, __nu, __phi); }
@@ -314,6 +313,7 @@ namespace tr1
ellint_3l(long double __k, long double __nu, long double __phi)
{ return __detail::__ellint_3<long double>(__k, __nu, __phi); }
+ /// 5.2.1.14 Incomplete elliptic integrals of the third kind.
template<typename _Tp, typename _Tpn, typename _Tpp>
inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type
ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi)
@@ -322,7 +322,6 @@ namespace tr1
return __detail::__ellint_3<__type>(__k, __nu, __phi);
}
- // 5.2.1.15 Exponential integrals.
inline float
expintf(float __x)
{ return __detail::__expint<float>(__x); }
@@ -331,6 +330,7 @@ namespace tr1
expintl(long double __x)
{ return __detail::__expint<long double>(__x); }
+ /// 5.2.1.15 Exponential integrals.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
expint(_Tp __x)
@@ -339,7 +339,6 @@ namespace tr1
return __detail::__expint<__type>(__x);
}
- // 5.2.1.16 Hermite polynomials.
inline float
hermitef(unsigned int __n, float __x)
{ return __detail::__poly_hermite<float>(__n, __x); }
@@ -348,6 +347,7 @@ namespace tr1
hermitel(unsigned int __n, long double __x)
{ return __detail::__poly_hermite<long double>(__n, __x); }
+ /// 5.2.1.16 Hermite polynomials.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
hermite(unsigned int __n, _Tp __x)
@@ -356,7 +356,6 @@ namespace tr1
return __detail::__poly_hermite<__type>(__n, __x);
}
- // 5.2.1.17 Hypergeometric functions.
inline float
hypergf(float __a, float __b, float __c, float __x)
{ return __detail::__hyperg<float>(__a, __b, __c, __x); }
@@ -365,6 +364,7 @@ namespace tr1
hypergl(long double __a, long double __b, long double __c, long double __x)
{ return __detail::__hyperg<long double>(__a, __b, __c, __x); }
+ /// 5.2.1.17 Hypergeometric functions.
template<typename _Tpa, typename _Tpb, typename _Tpc, typename _Tp>
inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type
hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x)
@@ -373,7 +373,6 @@ namespace tr1
return __detail::__hyperg<__type>(__a, __b, __c, __x);
}
- // 5.2.1.18 Laguerre polynomials.
inline float
laguerref(unsigned int __n, float __x)
{ return __detail::__laguerre<float>(__n, __x); }
@@ -382,6 +381,7 @@ namespace tr1
laguerrel(unsigned int __n, long double __x)
{ return __detail::__laguerre<long double>(__n, __x); }
+ /// 5.2.1.18 Laguerre polynomials.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
laguerre(unsigned int __n, _Tp __x)
@@ -390,7 +390,6 @@ namespace tr1
return __detail::__laguerre<__type>(__n, __x);
}
- // 5.2.1.19 Legendre polynomials.
inline float
legendref(unsigned int __n, float __x)
{ return __detail::__poly_legendre_p<float>(__n, __x); }
@@ -399,6 +398,7 @@ namespace tr1
legendrel(unsigned int __n, long double __x)
{ return __detail::__poly_legendre_p<long double>(__n, __x); }
+ /// 5.2.1.19 Legendre polynomials.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
legendre(unsigned int __n, _Tp __x)
@@ -407,7 +407,6 @@ namespace tr1
return __detail::__poly_legendre_p<__type>(__n, __x);
}
- // 5.2.1.20 Riemann zeta function.
inline float
riemann_zetaf(float __x)
{ return __detail::__riemann_zeta<float>(__x); }
@@ -416,6 +415,7 @@ namespace tr1
riemann_zetal(long double __x)
{ return __detail::__riemann_zeta<long double>(__x); }
+ /// 5.2.1.20 Riemann zeta function.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
riemann_zeta(_Tp __x)
@@ -424,7 +424,6 @@ namespace tr1
return __detail::__riemann_zeta<__type>(__x);
}
- // 5.2.1.21 Spherical Bessel functions.
inline float
sph_besself(unsigned int __n, float __x)
{ return __detail::__sph_bessel<float>(__n, __x); }
@@ -433,6 +432,7 @@ namespace tr1
sph_bessell(unsigned int __n, long double __x)
{ return __detail::__sph_bessel<long double>(__n, __x); }
+ /// 5.2.1.21 Spherical Bessel functions.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
sph_bessel(unsigned int __n, _Tp __x)
@@ -441,7 +441,6 @@ namespace tr1
return __detail::__sph_bessel<__type>(__n, __x);
}
- // 5.2.1.22 Spherical associated Legendre functions.
inline float
sph_legendref(unsigned int __l, unsigned int __m, float __theta)
{ return __detail::__sph_legendre<float>(__l, __m, __theta); }
@@ -450,6 +449,7 @@ namespace tr1
sph_legendrel(unsigned int __l, unsigned int __m, long double __theta)
{ return __detail::__sph_legendre<long double>(__l, __m, __theta); }
+ /// 5.2.1.22 Spherical associated Legendre functions.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta)
@@ -458,7 +458,6 @@ namespace tr1
return __detail::__sph_legendre<__type>(__l, __m, __theta);
}
- // 5.2.1.23 Spherical Neumann functions.
inline float
sph_neumannf(unsigned int __n, float __x)
{ return __detail::__sph_neumann<float>(__n, __x); }
@@ -467,6 +466,7 @@ namespace tr1
sph_neumannl(unsigned int __n, long double __x)
{ return __detail::__sph_neumann<long double>(__n, __x); }
+ /// 5.2.1.23 Spherical Neumann functions.
template<typename _Tp>
inline typename __gnu_cxx::__promote<_Tp>::__type
sph_neumann(unsigned int __n, _Tp __x)
@@ -475,7 +475,7 @@ namespace tr1
return __detail::__sph_neumann<__type>(__n, __x);
}
- /* @} */ // group tr1_math_spec_func
+ /* @} */ // tr1_math_spec_func
}
}
OpenPOWER on IntegriCloud