Inhaltsverzeichnis

exp1m()

#include <cmath>

double exp1m (double x) 

Liefert $e^x-1$.

Parameter

x reeller Exponent

Ergebnis

Rückgabewert: Potenz $e^x-1$ mit Basis e = 2.71828… (Eulersche Zahl).

Bei zu großem x tritt ein Bereichsfehler auf (errno = ERANGE).

Siehe auch

exp(), log1p().

Beispiel

exp1m.cpp
#include <cmath>
#include <iostream>
 
int main()
{
  std::cout << "Eulersche Zahl e = " << 1 + std::exp1m(1.0) << '\n';
}