TorchLean API

FloatLib.Numerics.Enclosure.Trigonometric.Pi.Runtime

Rational enclosures at rational multiples of pi #

The angle is reduced modulo two exactly, before multiplication by an enclosed value of pi. Consequently both the Taylor argument and the error multiplier are bounded independently of large integer parts of the input. The radius includes the uncertainty in pi. These operations use neither a rounded value of pi nor an approximate rational-angle equality test.

Integer full turns removed from a pi-scaled angle, with upward half ties.

Instances For

    Exact reduction of a pi-scaled angle to [-1, 1).

    Instances For
      def FloatLib.Numerics.Enclosure.piArgument (argument : ) (degree : ) :

      A rational Taylor argument obtained from the lower, clamped quarter-period enclosure.

      Instances For

        Error introduced by using the rational approximation to pi.

        Instances For
          def FloatLib.Numerics.Enclosure.piRadius (argument : ) (degree : ) :

          Combined Taylor remainder and argument uncertainty.

          Instances For

            Enclose sin (argument * π) after exact rational angle reduction.

            Instances For

              Enclose cos (argument * π) with the same exact angle reduction.

              Instances For
                def FloatLib.Numerics.Enclosure.sinPiSubCos (argument boundary : ) (degree : ) :

                A division-free enclosure of the residual used to compare pi-scaled tangent.

                Instances For