TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.DirectedSemantics.SquareRoot

Directed square-root bounds #

The integer square-root bracket used by sqrtDown and sqrtUp encloses the exact real square root after restoring its dyadic scale. For descriptors with fmt.isIEEE = true, directed dyadic rounding yields extended-real lower and upper bounds on finite nonnegative inputs, including negative zero.

The dyadic endpoints computed by sqrtDyadicBracket enclose the exact square root.

A finite value with clear sign bit has nonnegative real value.

Downward square root is non-NaN on finite nonnegative inputs.

Upward square root is non-NaN on finite nonnegative inputs.

sqrtDown encloses the exact square root from below for every finite value with nonnegative real semantics, including negative zero.

The exact square root is bounded above by sqrtUp for every finite value with nonnegative real semantics, including negative zero.

sqrtDown bounds the exact square root from below on finite inputs with a clear sign bit.

sqrtUp bounds the exact square root from above on finite inputs with a clear sign bit.