namespace cpp {}

C++ lernen, kennen, anwenden

Benutzer-Werkzeuge

Webseiten-Werkzeuge


Action disabled: source
kennen:lib:tgamma

tgamma()

#include <cmath>

double tgamma (double x) 

Liefert den Wert der Gammafunktion $\Gamma(x) = \int_0^\infty t^{x-1}e^{-t} dt$ für $x \neq -n$. Für nichtnegative ganzzahlige Argumente gilt $\Gamma(n+1) = n!$.

Parameter

x Gleitkommazahl ($x \neq -n$ mit $n \in \mathbb{N}$)

Ergebnis

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

Siehe auch

Beispiel

tgamma.cpp
#include <cmath>
#include <iostream>
 
int main()
{
  std::cout << "Gamma(4.0) = " << std::tgamma(4.0) << '\n';
}
kennen/lib/tgamma.txt · Zuletzt geändert: 2019-11-20 16:31 von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki