#include <cmath>
#include
double log1p (double x)
Liefert $\ln (1+x)$ für $x>-1$.
x
Rückgabewert: log(1+x).
log(1+x)
exp1m(), log().
#include <cmath> #include <iostream> int main() { std::cout << "log1p(0.0) = " << std::log1p(1.0) << '\n'; }