stable_pow

ivy.stable_pow(base: Any, exponent: Any, min_base: Optional[float] = None) → Any[source]

Raise the base by the power, with MIN_BASE added to the base when exponent > 1 for numerical stability.

Parameters
  • base (any valid numerator, including containers) – The numerator of the division.

  • exponent (any valid denominator, including containers) – The denominator of the division.

  • min_base (float, optional) – The minimum base to use, use global ivy._MIN_BASE by default.

Returns

The new item following the numerically stable division.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty