Name of function $(1+x)^n-1$

133 Views Asked by At

Is there any name for this formula

$$(1+x)^n-1$$

When working with floating point numbers this can be calculated with much better precision for very small $|x|<1$ values using Taylor series comparing to result from direct calculation approach. Still I need to name it somehow to move this to separate calculation class and don't like the name OnePlusPoweredMinusOneFunction.

1

There are 1 best solutions below

1
On BEST ANSWER

If you are dealing with this numerically, use

expm1(n*log1p(x))

(if those functions are available in your math library) to get high precision results.

expm1(x)=exp(x)-1 

and

log1p(x) = ln(1+x)

both for small x without cancellation.