Common mathematical functions | |||||||||||||||||||||||||||||||
Mathematical special functions(C++17) | |||||||||||||||||||||||||||||||
Mathematical constants(C++20) | |||||||||||||||||||||||||||||||
Basic linear algebra algorithms(C++26) | |||||||||||||||||||||||||||||||
Data-parallel types (SIMD)(C++26) | |||||||||||||||||||||||||||||||
Floating-point environment(C++11) | |||||||||||||||||||||||||||||||
Complex numbers | |||||||||||||||||||||||||||||||
Numeric array (valarray ) | |||||||||||||||||||||||||||||||
Pseudo-random number generation | |||||||||||||||||||||||||||||||
Bit manipulation(C++20) | |||||||||||||||||||||||||||||||
Saturation arithmetic(C++26) | |||||||||||||||||||||||||||||||
Factor operations | |||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||
Interpolations | |||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||
Generic numeric operations | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
C-style checked integer arithmetic | |||||||||||||||||||||||||||||||
|
Defined in header <cmath> | ||
(1) | ||
float sph_neumann(unsigned n,float x); double sph_neumann(unsigned n,double x); | (since C++17) (until C++23) | |
/* floating-point-type */ sph_neumann(unsigned n, /* floating-point-type */ x); | (since C++23) | |
float sph_neumannf(unsigned n,float x); | (2) | (since C++17) |
longdouble sph_neumannl(unsigned n,longdouble x); | (3) | (since C++17) |
Defined in header <cmath> | ||
template<class Integer> double sph_neumann(unsigned n, Integer x); | (A) | (since C++17) |
std::sph_neumann
for all cv-unqualified floating-point types as the type of the parameterx.(since C++23)Contents |
n | - | the order of the function |
x | - | the argument of the function |
If no errors occur, returns the value of the spherical Bessel function of the second kind (spherical Neumann function) ofn andx, that isnn(x) = (π/2x)1/2
Nn+1/2(x) whereNn(x) isstd::cyl_neumann(n, x) andx≥0.
Errors may be reported as specified inmath_errhandling
Implementations that do not support C++17, but supportISO 29124:2010, provide this function if__STDCPP_MATH_SPEC_FUNCS__
is defined by the implementation to a value at least 201003L and if the user defines__STDCPP_WANT_MATH_SPEC_FUNCS__
before including any standard library headers.
Implementations that do not support ISO 29124:2010 but support TR 19768:2007 (TR1), provide this function in the headertr1/cmath
and namespacestd::tr1
.
An implementation of this function is also available inboost.math.
The additional overloads are not required to be provided exactly as(A). They only need to be sufficient to ensure that for their argumentnum of integer type,std::sph_neumann(int_num, num) has the same effect asstd::sph_neumann(int_num,static_cast<double>(num)).
Output:
n_1(1.2345) = -0.981201-cos(x)/x² - sin(x)/x = -0.981201
(C++17)(C++17)(C++17) | cylindrical Neumann functions (function)[edit] |
(C++17)(C++17)(C++17) | spherical Bessel functions (of the first kind) (function)[edit] |
Weisstein, Eric W. "Spherical Bessel Function of the Second Kind." From MathWorld — A Wolfram Web Resource. |