命名空间
变体
操作

标准库头文件 <cmath>

来自 cppreference.cn
< cpp‎ | header
 
 
标准库头文件
算法
<algorithm>
<numeric>
字符串
<cctype>
<cstring>
<cuchar> (C++11)
<cwchar>
<cwctype>
<string_view> (C++17)
<string>
文本处理
<clocale>
<codecvt> (C++11/17/26*)
<locale>
<regex> (C++11)
<text_encoding> (C++26)   
数值
<cfenv> (C++11)
<cmath>
<complex>
<linalg> (C++26)
<numbers> (C++20)
<random> (C++11)
<simd> (C++26)
<valarray>
时间
<chrono> (C++11)
<ctime>
C 兼容性
<ccomplex> (C++11/17/20*)
<ciso646> (until C++20)
<cstdalign> (C++11/17/20*)
<cstdbool> (C++11/17/20*)
<ctgmath> (C++11/17/20*)
 

此头文件最初在 C 标准库中为 <math.h>

此头文件是 数值 库的一部分。

内容

类型

float_t
(C++11)
最有效的浮点类型,至少与 float 一样宽
(typedef) [编辑]
double_t
(C++11)
最有效的浮点类型,至少与 double 一样宽
(typedef) [编辑]

分别指示 floatdoublelong double 的溢出值
(宏常量) [编辑]
(C++11)
求值为正无穷大或保证溢出 float 的值
(宏常量) [编辑]
(C++11)
求值为 float 类型的静默 NaN
(宏常量) [编辑]
定义常用数学函数使用的错误处理机制
(宏常量) [编辑]
分类
(C++11)(C++11)(C++11)(C++11)(C++11)
指示浮点类别
(宏常量) [编辑]

函数

基本运算
浮点值的绝对值 (|x|)
(函数) [编辑]
(C++11)(C++11)
浮点除法运算的余数
(函数) [编辑]
(C++11)(C++11)(C++11)
除法运算的有符号余数
(函数) [编辑]
(C++11)(C++11)(C++11)
有符号余数以及除法运算的最后三位
(函数) [编辑]
(C++11)(C++11)(C++11)
融合乘加运算
(函数) [编辑]
(C++11)(C++11)(C++11)
两个浮点值中较大者
(函数) [编辑]
(C++11)(C++11)(C++11)
两个浮点值中较小者
(函数) [编辑]
(C++11)(C++11)(C++11)
两个浮点值的正差值 (max(0, x-y))
(函数) [编辑]
(C++11)(C++11)(C++11)
非数字 (NaN)
(函数) [编辑]
线性插值
(C++20)
线性插值函数
(函数) [编辑]
指数函数
(C++11)(C++11)
返回 e 的给定次幂 (ex)
(函数) [编辑]
(C++11)(C++11)(C++11)
返回 2 的给定次幂 (2x)
(函数) [编辑]
(C++11)(C++11)(C++11)
返回 e 的给定次幂,减 1 (ex-1)
(函数) [编辑]
(C++11)(C++11)
计算自然对数(底为 e)(ln(x))
(函数) [编辑]
(C++11)(C++11)
计算常用对数(底为 10)(log10(x))
(函数) [编辑]
(C++11)(C++11)(C++11)
给定数字的以 2 为底的对数 (log2(x))
(函数) [编辑]
(C++11)(C++11)(C++11)
自然对数(以 e 为底)的 1 加上给定数字 (ln(1+x))
(函数) [编辑]
幂函数
(C++11)(C++11)
将数字提升到给定幂 (xy)
(函数) [编辑]
(C++11)(C++11)
计算平方根 (x)
(函数) [编辑]
(C++11)(C++11)(C++11)
计算立方根 (3x)
(函数) [编辑]
(C++11)(C++11)(C++11)
计算斜边 x2
+y2
以及 x2
+y2
+z2
(自 C++17 起)

(函数) [编辑]
三角函数
(C++11)(C++11)
计算正弦 (sin(x))
(函数) [编辑]
(C++11)(C++11)
计算余弦 (cos(x))
(函数) [编辑]
(C++11)(C++11)
计算正切 (tan(x))
(函数) [编辑]
(C++11)(C++11)
计算反正弦 (arcsin(x))
(函数) [编辑]
(C++11)(C++11)
计算反余弦 (arccos(x))
(函数) [编辑]
(C++11)(C++11)
计算反正切 (arctan(x))
(函数) [编辑]
(C++11)(C++11)
反正切,使用符号确定象限
(函数) [编辑]
双曲函数
(C++11)(C++11)
计算双曲正弦 (sinh(x))
(函数) [编辑]
(C++11)(C++11)
计算双曲余弦 (cosh(x))
(函数) [编辑]
(C++11)(C++11)
计算双曲正切 (tanh(x))
(函数) [编辑]
(C++11)(C++11)(C++11)
计算反双曲正弦 (arsinh(x))
(函数) [编辑]
(C++11)(C++11)(C++11)
计算反双曲余弦 (arcosh(x))
(函数) [编辑]
(C++11)(C++11)(C++11)
计算反双曲正切 (artanh(x))
(函数) [编辑]
误差和伽玛函数
(C++11)(C++11)(C++11)
误差函数
(函数) [编辑]
(C++11)(C++11)(C++11)
互补误差函数
(函数) [编辑]
(C++11)(C++11)(C++11)
伽玛函数
(函数) [编辑]
(C++11)(C++11)(C++11)
伽玛函数的自然对数
(函数) [编辑]
最近整数浮点运算
(C++11)(C++11)
不小于给定值的最近整数
(函数) [编辑]
(C++11)(C++11)
不大于给定值的最近整数
(函数) [edit]
(C++11)(C++11)(C++11)
最接近的且绝对值不大于给定值的整数
(函数) [edit]
(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)
最接近的整数,在中间情况下远离零舍入
(函数) [edit]
(C++11)(C++11)(C++11)
使用当前舍入模式的最接近整数
(函数) [edit]
(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)
使用当前舍入模式的最接近整数,如果
结果不同则抛出异常
(函数) [edit]
浮点数操作函数
(C++11)(C++11)
将数字分解为尾数和以 2 为底的指数
(函数) [edit]
(C++11)(C++11)
将数字乘以 2 的整数次幂
(函数) [edit]
(C++11)(C++11)
将数字分解为整数部分和小数部分
(函数) [edit]
(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)
将数字乘以 FLT_RADIX 的幂
(函数) [edit]
(C++11)(C++11)(C++11)
提取数字的指数
(函数) [edit]
(C++11)(C++11)(C++11)
提取数字的指数
(函数) [edit]
(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)
朝给定值的下一个可表示的浮点数值
(函数) [edit]
(C++11)(C++11)(C++11)
复制浮点数值的符号
(函数) [edit]
分类和比较
对给定的浮点数值进行分类
(函数) [edit]
(C++11)
检查给定数字是否为有限值
(函数) [edit]
(C++11)
检查给定数字是否为无穷大
(函数) [edit]
(C++11)
检查给定数字是否为 NaN
(函数) [edit]
(C++11)
检查给定数字是否为正规数
(函数) [edit]
(C++11)
检查给定数字是否为负数
(函数) [edit]
(C++11)
检查第一个浮点参数是否大于第二个
(函数) [edit]
检查第一个浮点参数是否大于或等于第二个
(函数) [edit]
(C++11)
检查第一个浮点参数是否小于第二个
(函数) [edit]
检查第一个浮点参数是否小于或等于第二个
(函数) [edit]
检查第一个浮点参数是否小于或大于第二个
(函数) [edit]
检查两个浮点数值是否无序
(函数) [edit]
数学特殊函数
拉盖尔(Laguerre)伴随多项式
(函数) [edit]
勒让德(Legendre)伴随多项式
(函数) [edit]
(C++17)(C++17)(C++17)
贝塔函数
(函数) [edit]
(完全)第一类椭圆积分
(函数) [edit]
(完全)第二类椭圆积分
(函数) [edit]
(完全)第三类椭圆积分
(函数) [edit]
正则修正柱贝塞尔函数
(函数) [edit]
柱贝塞尔函数(第一类)
(函数) [edit]
非正则修正柱贝塞尔函数
(函数) [edit]
柱诺伊曼函数
(函数) [edit]
(C++17)(C++17)(C++17)
(不完全)第一类椭圆积分
(函数) [edit]
(C++17)(C++17)(C++17)
(不完全)第二类椭圆积分
(函数) [edit]
(C++17)(C++17)(C++17)
(不完全)第三类椭圆积分
(函数) [edit]
(C++17)(C++17)(C++17)
指数积分
(函数) [edit]
(C++17)(C++17)(C++17)
埃尔米特(Hermite)多项式
(函数) [edit]
(C++17)(C++17)(C++17)
勒让德(Legendre)多项式
(函数) [edit]
(C++17)(C++17)(C++17)
拉盖尔(Laguerre)多项式
(函数) [edit]
黎曼 zeta 函数
(函数) [edit]
球贝塞尔函数(第一类)
(函数) [edit]
球伴随勒让德函数
(函数) [edit]
球诺伊曼函数
(函数) [edit]

[edit] 概要

对于每个至少有一个 /* floating-point-type */ 类型参数的函数,会为每个 cv 无限定的浮点类型提供重载,其中函数签名中所有 /* floating-point-type */ 的使用都会被替换为该浮点类型。

对于每个至少有一个 /* floating-point-type */ 类型参数(除了 std::abs)的函数,会提供额外的重载以确保,如果每个对应于 /* floating-point-type */ 参数的实参都具有算术类型,则每个这样的实参都有效地转换为浮点类型,该浮点类型在所有此类实参的类型中具有最高的浮点转换等级和最高的浮点转换子等级,其中整数类型的实参被认为与 double 具有相同的浮点转换等级。如果不存在具有最高等级和子等级的浮点类型,则重载解析不会从提供的重载中产生可用的候选项。

namespace std {
  using float_t = /* see description */;
  using double_t = /* see description */;
}
 
#define HUGE_VAL /* see description */
#define HUGE_VALF /* see description */
#define HUGE_VALL /* see description */
#define INFINITY /* see description */
#define NAN /* see description */
#define FP_INFINITE /* see description */
#define FP_NAN /* see description */
#define FP_NORMAL /* see description */
#define FP_SUBNORMAL /* see description */
#define FP_ZERO /* see description */
#define FP_FAST_FMA /* see description */
#define FP_FAST_FMAF /* see description */
#define FP_FAST_FMAL /* see description */
#define FP_ILOGB0 /* see description */
#define FP_ILOGBNAN /* see description */
#define MATH_ERRNO /* see description */
#define MATH_ERREXCEPT /* see description */
 
#define math_errhandling /* see description */
 
namespace std {
  /* floating-point-type */ acos(/* floating-point-type */ x);
  float acosf(float x);
  long double acosl(long double x);
 
  /* floating-point-type */ asin(/* floating-point-type */ x);
  float asinf(float x);
  long double asinl(long double x);
 
  /* floating-point-type */ atan(/* floating-point-type */ x);
  float atanf(float x);
  long double atanl(long double x);
 
  /* floating-point-type */ atan2(/* floating-point-type */ y,
                                  /* floating-point-type */ x);
  float atan2f(float y, float x);
  long double atan2l(long double y, long double x);
 
  /* floating-point-type */ cos(/* floating-point-type */e x);
  float cosf(float x);
  long double cosl(long double x);
 
  /* floating-point-type */ sin(/* floating-point-type */ x);
  float sinf(float x);
  long double sinl(long double x);
 
  /* floating-point-type */ tan(/* floating-point-type */ x);
  float tanf(float x);
  long double tanl(long double x);
 
  /* floating-point-type */ acosh(/* floating-point-type */ x);
  float acoshf(float x);
  long double acoshl(long double x);
 
  /* floating-point-type */ asinh(/* floating-point-type */ x);
  float asinhf(float x);
  long double asinhl(long double x);
 
  /* floating-point-type */ atanh(/* floating-point-type */ x);
  float atanhf(float x);
  long double atanhl(long double x);
 
  /* floating-point-type */ cosh(/* floating-point-type */ x);
  float coshf(float x);
  long double coshl(long double x);
 
  /* floating-point-type */ sinh(/* floating-point-type */ x);
  float sinhf(float x);
  long double sinhl(long double x);
 
  /* floating-point-type */ tanh(/* floating-point-type */ x);
  float tanhf(float x);
  long double tanhl(long double x);
 
  /* floating-point-type */ exp(/* floating-point-type */ x);
  float expf(float x);
  long double expl(long double x);
 
  /* floating-point-type */ exp2(/* floating-point-type */ x);
  float exp2f(float x);
  long double exp2l(long double x);
 
  /* floating-point-type */ expm1(/* floating-point-type */ x);
  float expm1f(float x);
  long double expm1l(long double x);
 
  constexpr /* floating-point-type */ frexp(/* floating-point-type */ value, int* exp);
  constexpr float frexpf(float value, int* exp);
  constexpr long double frexpl(long double value, int* exp);
 
  constexpr int ilogb(/* floating-point-type */ x);
  constexpr int ilogbf(float x);
  constexpr int ilogbl(long double x);
 
  constexpr /* floating-point-type */ ldexp(/* floating-point-type */ x, int exp);
  constexpr float ldexpf(float x, int exp);
  constexpr long double ldexpl(long double x, int exp);
 
  /* floating-point-type */ log(/* floating-point-type */ x);
  float logf(float x);
  long double logl(long double x);
 
  /* floating-point-type */ log10(/* floating-point-type */ x);
  float log10f(float x);
  long double log10l(long double x);
 
  /* floating-point-type */ log1p(/* floating-point-type */ x);
  float log1pf(float x);
  long double log1pl(long double x);
 
  /* floating-point-type */ log2(/* floating-point-type */ x);
  float log2f(float x);
  long double log2l(long double x);
 
  constexpr /* floating-point-type */ logb(/* floating-point-type */ x);
  constexpr float logbf(float x);
  constexpr long double logbl(long double x);
 
  constexpr /* floating-point-type */ modf(/* floating-point-type */ value,
                                           /* floating-point-type */* iptr);
  constexpr float modff(float value, float* iptr);
  constexpr long double modfl(long double value, long double* iptr);
 
  constexpr /* floating-point-type */ scalbn(/* floating-point-type */ x, int n);
  constexpr float scalbnf(float x, int n);
  constexpr long double scalbnl(long double x, int n);
 
  constexpr /* floating-point-type */ scalbln(/* floating-point-type */ x, long int n);
  constexpr float scalblnf(float x, long int n);
  constexpr long double scalblnl(long double x, long int n);
 
  /* floating-point-type */ cbrt(/* floating-point-type */ x);
  float cbrtf(float x);
  long double cbrtl(long double x);
 
  // absolute values
  constexpr int abs(int j);                     // freestanding
  constexpr long int abs(long int j);           // freestanding
  constexpr long long int abs(long long int j); // freestanding
  constexpr /* floating-point-type */
    abs(/* floating-point-type */ j);           // freestanding-deleted
 
  constexpr /* floating-point-type */ fabs(/* floating-point-type */ x);
  constexpr float fabsf(float x);
  constexpr long double fabsl(long double x);
 
  /* floating-point-type */ hypot(/* floating-point-type */ x,
                                  /* floating-point-type */ y);
  float hypotf(float x, float y);
  long double hypotl(long double x, long double y);
 
  // three-dimensional hypotenuse
  float hypot(/* floating-point-type */ x,
              /* floating-point-type */ y,
              /* floating-point-type */ z);
 
  /* floating-point-type */ pow(/* floating-point-type */ x,
                                /* floating-point-type */ y);
  float powf(float x, float y);
  long double powl(long double x, long double y);
 
  /* floating-point-type */ sqrt(/* floating-point-type */ x);
  float sqrtf(float x);
  long double sqrtl(long double x);
 
  /* floating-point-type */ erf(/* floating-point-type */ x);
  float erff(float x);
  long double erfl(long double x);
 
  /* floating-point-type */ erfc(/* floating-point-type */ x);
  float erfcf(float x);
  long double erfcl(long double x);
 
  /* floating-point-type */ lgamma(/* floating-point-type */ x);
  float lgammaf(float x);
  long double lgammal(long double x);
 
  /* floating-point-type */ tgamma(/* floating-point-type */ x);
  float tgammaf(float x);
  long double tgammal(long double x);
 
  constexpr /* floating-point-type */ ceil(/* floating-point-type */ x);
  constexpr float ceilf(float x);
  constexpr long double ceill(long double x);
 
  constexpr /* floating-point-type */ floor(/* floating-point-type */ x);
  constexpr float floorf(float x);
  constexpr long double floorl(long double x);
 
  /* floating-point-type */ nearbyint(/* floating-point-type */ x);
  float nearbyintf(float x);
  long double nearbyintl(long double x);
 
  /* floating-point-type */ rint(/* floating-point-type */ x);
  float rintf(float x);
  long double rintl(long double x);
 
  long int lrint(/* floating-point-type */ x);
  long int lrintf(float x);
  long int lrintl(long double x);
 
  long long int llrint(/* floating-point-type */ x);
  long long int llrintf(float x);
  long long int llrintl(long double x);
 
  constexpr /* floating-point-type */ round(/* floating-point-type */ x);
  constexpr float roundf(float x);
  constexpr long double roundl(long double x);
 
  constexpr long int lround(/* floating-point-type */ x);
  constexpr long int lroundf(float x);
  constexpr long int lroundl(long double x);
 
  constexpr long long int llround(/* floating-point-type */ x);
  constexpr long long int llroundf(float x);
  constexpr long long int llroundl(long double x);
 
  constexpr /* floating-point-type */ trunc(/* floating-point-type */ x);
  constexpr float truncf(float x);
  constexpr long double truncl(long double x);
 
  constexpr /* floating-point-type */ fmod(/* floating-point-type */ x,
                                           /* floating-point-type */ y);
  constexpr float fmodf(float x, float y);
  constexpr long double fmodl(long double x, long double y);
 
  constexpr /* floating-point-type */ remainder(/* floating-point-type */ x,
                                                /* floating-point-type */ y);
  constexpr float remainderf(float x, float y);
  constexpr long double remainderl(long double x, long double y);
 
  constexpr /* floating-point-type */ remquo(/* floating-point-type */ x,
                                             /* floating-point-type */ y, int* quo);
  constexpr float remquof(float x, float y, int* quo);
  constexpr long double remquol(long double x, long double y, int* quo);
 
  constexpr /* floating-point-type */ copysign(/* floating-point-type */ x,
                                               /* floating-point-type */ y);
  constexpr float copysignf(float x, float y);
  constexpr long double copysignl(long double x, long double y);
 
  double nan(const char* tagp);
  float nanf(const char* tagp);
  long double nanl(const char* tagp);
 
  constexpr /* floating-point-type */ nextafter(/* floating-point-type */ x,
                                                /* floating-point-type */ y);
  constexpr float nextafterf(float x, float y);
  constexpr long double nextafterl(long double x, long double y);
 
  constexpr /* floating-point-type */ nexttoward(/* floating-point-type */ x,
                                                 long double y);
  constexpr float nexttowardf(float x, long double y);
  constexpr long double nexttowardl(long double x, long double y);
 
  constexpr /* floating-point-type */ fdim(/* floating-point-type */ x,
                                           /* floating-point-type */ y);
  constexpr float fdimf(float x, float y);
  constexpr long double fdiml(long double x, long double y);
 
  constexpr /* floating-point-type */ fmax(/* floating-point-type */ x,
                                           /* floating-point-type */ y);
  constexpr float fmaxf(float x, float y);
  constexpr long double fmaxl(long double x, long double y);
 
  constexpr /* floating-point-type */ fmin(/* floating-point-type */ x,
                                           /* floating-point-type */ y);
  constexpr float fminf(float x, float y);
  constexpr long double fminl(long double x, long double y);
 
  constexpr /* floating-point-type */ fma(/* floating-point-type */ x,
                                          /* floating-point-type */ y,
                                          /* floating-point-type */ z);
  constexpr float fmaf(float x, float y, float z);
  constexpr long double fmal(long double x, long double y, long double z);
 
  // linear interpolation
  constexpr /* floating-point-type */ lerp(/* floating-point-type */ a,
                                           /* floating-point-type */ b,
                                           /* floating-point-type */ t) noexcept;
 
  // classification / comparison functions
  constexpr int fpclassify(/* floating-point-type */ x);
 
  constexpr bool isfinite(/* floating-point-type */ x);
 
  constexpr bool isinf(/* floating-point-type */ x);
 
  constexpr bool isnan(/* floating-point-type */ x);
 
  constexpr bool isnormal(/* floating-point-type */ x);
 
  constexpr bool signbit(/* floating-point-type */ x);
 
  constexpr bool isgreater(/* floating-point-type */ x,
                           /* floating-point-type */ y);
 
  constexpr bool isgreaterequal(/* floating-point-type */ x,
                                /* floating-point-type */ y);
 
  constexpr bool isless(/* floating-point-type */ x,
                        /* floating-point-type */ y);
 
  constexpr bool islessequal(/* floating-point-type */ x,
                             /* floating-point-type */ y);
 
  constexpr bool islessgreater(/* floating-point-type */ x,
                               /* floating-point-type */ y);
 
  constexpr bool isunordered(/* floating-point-type */ x,
                             /* floating-point-type */ y);
 
  // mathematical special functions
 
  // associated Laguerre polynomials
  /* floating-point-type */ assoc_laguerre(unsigned n, unsigned m,
                                           /* floating-point-type */ x);
  float assoc_laguerref(unsigned n, unsigned m, float x);
  long double assoc_laguerrel(unsigned n, unsigned m, long double x);
 
  // associated Legendre functions
  /* floating-point-type */ assoc_legendre(unsigned l, unsigned m,
                                           /* floating-point-type */ x);
  float assoc_legendref(unsigned l, unsigned m, float x);
  long double assoc_legendrel(unsigned l, unsigned m, long double x);
 
  // beta function
  /* floating-point-type */ beta(/* floating-point-type */ x,
                                 /* floating-point-type */ y);
  float betaf(float x, float y);
  long double betal(long double x, long double y);
 
  // complete elliptic integral of the first kind
  /* floating-point-type */ comp_ellint_1(/* floating-point-type */ k);
  float comp_ellint_1f(float k);
  long double comp_ellint_1l(long double k);
 
  // complete elliptic integral of the second kind
  /* floating-point-type */ comp_ellint_2(/* floating-point-type */ k);
  float comp_ellint_2f(float k);
  long double comp_ellint_2l(long double k);
 
  // complete elliptic integral of the third kind
  /* floating-point-type */ comp_ellint_3(/* floating-point-type */ k,
                                          /* floating-point-type */ nu);
  float comp_ellint_3f(float k, float nu);
  long double comp_ellint_3l(long double k, long double nu);
 
  // regular modified cylindrical Bessel functions
  /* floating-point-type */ cyl_bessel_i(/* floating-point-type */ nu,
                                         /* floating-point-type */ x);
  float cyl_bessel_if(float nu, float x);
  long double cyl_bessel_il(long double nu, long double x);
 
  // cylindrical Bessel functions of the first kind
  /* floating-point-type */ cyl_bessel_j(/* floating-point-type */ nu,
                                         /* floating-point-type */ x);
  float cyl_bessel_jf(float nu, float x);
  long double cyl_bessel_jl(long double nu, long double x);
 
  // irregular modified cylindrical Bessel functions
  /* floating-point-type */ cyl_bessel_k(/* floating-point-type */ nu,
                                         /* floating-point-type */ x);
  float cyl_bessel_kf(float nu, float x);
  long double cyl_bessel_kl(long double nu, long double x);
 
  // cylindrical Neumann functions;
  // cylindrical Bessel functions of the second kind
  /* floating-point-type */ cyl_neumann(/* floating-point-type */ nu,
                                        /* floating-point-type */ x);
  float cyl_neumannf(float nu, float x);
  long double cyl_neumannl(long double nu, long double x);
 
  // incomplete elliptic integral of the first kind
  /* floating-point-type */ ellint_1(/* floating-point-type */ k,
                                     /* floating-point-type */ phi);
  float ellint_1f(float k, float phi);
  long double ellint_1l(long double k, long double phi);
 
  // incomplete elliptic integral of the second kind
  /* floating-point-type */ ellint_2(/* floating-point-type */ k,
                                     /* floating-point-type */ phi);
  float ellint_2f(float k, float phi);
  long double ellint_2l(long double k, long double phi);
 
  // incomplete elliptic integral of the third kind
  /* floating-point-type */ ellint_3(/* floating-point-type */ k,
                                     /* floating-point-type */ nu,
                                     /* floating-point-type */ phi);
  float ellint_3f(float k, float nu, float phi);
  long double ellint_3l(long double k, long double nu, long double phi);
 
  // exponential integral
  /* floating-point-type */ expint(/* floating-point-type */ x);
  float expintf(float x);
  long double expintl(long double x);
 
  // Hermite polynomials
  /* floating-point-type */ hermite(unsigned n, /* floating-point-type */ x);
  float hermitef(unsigned n, float x);
  long double hermitel(unsigned n, long double x);
 
  // Laguerre polynomials
  /* floating-point-type */ laguerre(unsigned n, /* floating-point-type */ x);
  float laguerref(unsigned n, float x);
  long double laguerrel(unsigned n, long double x);
 
  // Legendre polynomials
  /* floating-point-type */ legendre(unsigned l, /* floating-point-type */ x);
  float legendref(unsigned l, float x);
  long double legendrel(unsigned l, long double x);
 
  // Riemann zeta function
  /* floating-point-type */ riemann_zeta(/* floating-point-type */ x);
  float riemann_zetaf(float x);
  long double riemann_zetal(long double x);
 
  // spherical Bessel functions of the first kind
  /* floating-point-type */ sph_bessel(unsigned n, /* floating-point-type */ x);
  float sph_besself(unsigned n, float x);
  long double sph_bessell(unsigned n, long double x);
 
  // spherical associated Legendre functions
  /* floating-point-type */ sph_legendre(unsigned l, unsigned m,
                                         /* floating-point-type */ theta);
  float sph_legendref(unsigned l, unsigned m, float theta);
  long double  sph_legendrel(unsigned l, unsigned m, long double theta);
 
  // spherical Neumann functions;
  // spherical Bessel functions of the second kind
  /* floating-point-type */ sph_neumann(unsigned n, /* floating-point-type */ x);
  float sph_neumannf(unsigned n, float x);
  long double sph_neumannl(unsigned n, long double x);
}