TorchLean API

FloatLib.Numerics.Exact.RationalPower.Enclosure.Runtime

Logarithm bounds for rational powers #

For a positive base and target, base ^ exponent lies below the target exactly when exponent * log base - log target is negative. Rational enclosures of the two logarithms give an enclosure of this difference, and raising their degree narrows it. A comparison never needs an integer power of the base or the target.

The interval can separate a nonzero difference from zero but cannot certify equality, which RationalPower.powEq decides.

Enclose the logarithm of a power divided by a target, for positive base and target.

Instances For