namespace cpp {}

C++ lernen, kennen, anwenden

Benutzer-Werkzeuge

Webseiten-Werkzeuge


Action disabled: source
kennen:lib:riemann_zeta

riemann_zeta()

#include <cmath>

 double riemann_zeta(double x)  // C++17

Liefert Wert der Riemannschen Zeta-Funktion $\zeta(x) = \sum_{n=1}^{\infty} \frac{1}{n^x}$ für reelles x.

Parameter

x

Ergebnis

Rückgabewert: $\zeta(x)$.

Siehe auch

-.

Beispiel

riemann_zeta.cpp
#include <cmath>
#include <iostream>
 
int main()
{
  for (int i = -500; i <= 500; ++i)
  {
    double x = 0.01*i;
    std::cout << x << '\t' << std::riemann_zeta(x) << '\n';
  }
}
kennen/lib/riemann_zeta.txt · Zuletzt geändert: 2016-12-03 15:12 von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki