kennen:lib:sph_neumann
−Inhaltsverzeichnis
sph_neumann()
#include
<cmath>
double sph_neumann(unsigned n, double x) // C++17
Liefert Wert der sphärischen Bessel-Funktion 2. Art (oder sphärischen Neumann-Funktion)
yν(x)=√π2xYν+1/2(x)
für x≥0.
Parameter
nu | |
x | ≥0 |
Ergebnis
Rückgabewert: yν(x).
Siehe auch
Beispiel
- sph_neumann.cpp
#include <cmath> #include <iostream> int main() { std::cout << "# x n=0 n=1 n=2\n"; for (int i = 0; i <= 1000; ++i) { double x = 0.01*i; std::cout << x << '\t' << std::sph_neumann(0, x) << '\t' << std::sph_neumann(1, x) << '\t' << std::sph_neumann(2, x) << '\n'; } }
kennen/lib/sph_neumann.txt · Zuletzt geändert: 2016-12-03 15:12 von 127.0.0.1