TorchLean API

FloatLib.Numerics.Exact.Trigonometric.Atan2.Enclosure.Runtime

Rational reduction and enclosures for the complex argument #

The input order is (x, y) for arg (x + i*y). A rational slope and an integer multiple of π/4 describe the principal branch (-π, π]. The negative real axis selects . At the origin this numerical helper uses the totalized mathematical value zero; format wrappers whose contract rejects the origin must do so before rounding.

Return a slope and a multiple of π/4 whose shifted arctangent is the principal argument. The second component is rational to support exact boundary shifts in comparisons of arg / π.

Instances For

    Enclose the principal argument using exact rational arctangent and Machin π/4 enclosures. All series arguments are reduced by the existing arctangent kernel.

    Instances For