TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Transcendentals.ExpLog

Format-generic executable exponential and logarithm #

expWith and logWith execute against explicit approximation data. The convenience operations exp and log select Config.forFormat. Their finite results are deterministic approximations; accuracy bounds require separate certificates.

Evaluate the first terms terms of t + t^3/3 + t^5/5 + ... in a fixed-point context.

Instances For

    Evaluate exponential using a delayed configuration provider.

    The provider is called only for a finite input, so generated configurations are not constructed for NaNs or infinities.

    Instances For

      Evaluate logarithm using a delayed configuration provider.

      The provider is called only for a finite positive input.

      Instances For

        Deterministic exponential using range reduction and an explicit fixed-point polynomial.

        NaNs are quieted and infinities use the destination format's native overflow and zero policies.

        Instances For

          Deterministic natural logarithm using centered dyadic normalization and an odd atanh series.

          Inputs near one use additional working precision and avoid a logarithmic subtraction. Special values follow the destination format's native overflow and invalid-result policies.

          Instances For
            @[inline]

            Exponential using the default configuration for the destination format.

            Instances For
              @[inline]

              Natural logarithm using the default configuration for the destination format.

              Instances For