You are viewing an older version (1.17.1).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _continuous_distns / _pow1pm1

function

scipy.stats._continuous_distns:_pow1pm1

source: /scipy/stats/_continuous_distns.py:2243

Signature

def _pow1pm1(x, y)

Summary

Compute (1 + x)**y - 1.

Extended Summary

Uses expm1 and xlog1py to avoid loss of precision when (1 + x)**y is close to 1.

Note that the inverse of this function with respect to x is _pow1pm1(x, 1/y). That is, if

t = _pow1pm1(x, y)

then

x = _pow1pm1(t, 1/y)

Aliases

  • scipy.stats._continuous_distns._pow1pm1