Inhaltsverzeichnis

log1p()

#include <cmath>

double log1p (double x) 

Liefert $\ln (1+x)$ für $x>-1$.

Parameter

x reeller Logarithmand $x > -1$

Ergebnis

Rückgabewert: log(1+x).

Siehe auch

exp1m(), log().

Beispiel

log1p.cpp
#include <cmath>
#include <iostream>
 
int main()
{
  std::cout << "log1p(0.0) = " << std::log1p(1.0) << '\n';
}