TorchLean API

FloatLib.Numerics.Exact.Trigonometric.PiValues.Runtime

Exact rational values at rational multiples of pi #

Most rational angles have irrational sine and cosine. The exceptions must be handled before interval refinement: an interval may otherwise straddle an exact rounding boundary forever. Reduction modulo one leaves four cosine cases; the removed integer controls the sign. No approximate value of pi enters this classification.

Sign contributed by an integer number of half-turns.

Only parity matters. Reducing modulo two also avoids passing an arbitrarily large exponent to the runtime's power operation for wide posit inputs.

Instances For

    The rational cosine value, when it exists, at the angle argument * π.

    Instances For

      Classify exact sine values by the complementary cosine angle.

      Instances For

        Reduce a pi-scaled angle to [-1/2, 1/2), preserving its tangent.

        Instances For

          Exact rational tangent values; half-integer poles are checked separately.

          Instances For

            The rational values of inverse tangent divided by pi.

            Instances For

              The rational values of inverse sine divided by pi on its real domain.

              Instances For

                Inverse cosine uses the complementary inverse sine angle.

                Instances For