This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _continuous_distns / _pow1pm1

function

scipy.stats._continuous_distns:_pow1pm1

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_continuous_distns.py:2285

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