TorchLean API

FloatLib.Floats.Formats.Posit.Configured.Trigonometric.Pi.Runtime

Configured posit pi-scaled trigonometric operations #

The sinPi, cosPi, and tanPi specifications use pi times the input; inverse operations return principal angles divided by pi. Each call encodes the model result through the lawful storage codec without further rounding.

@[inline]

Correctly rounded sine of pi times the input.

Instances For
    @[inline]

    Correctly rounded cosine of pi times the input.

    Instances For
      @[inline]

      Correctly rounded tangent of pi times the input; half-integers produce NaR.

      Instances For
        @[inline]

        Correctly rounded inverse sine divided by pi; inputs outside [-1, 1] produce NaR.

        Instances For
          @[inline]

          Correctly rounded inverse cosine divided by pi; inputs outside [-1, 1] produce NaR.

          Instances For
            @[inline]

            Correctly rounded principal inverse tangent divided by pi.

            Instances For