Variable roundConst

round: { safeNext: ((v: number) => number); safePrev: ((v: number) => number); acosHi: any; acosLo: any; addHi: any; addLo: any; asinHi: any; asinLo: any; atanHi: any; atanLo: any; cosHi: any; cosLo: any; coshHi: any; coshLo: any; disable: any; divHi: any; divLo: any; enable: any; expHi: any; expLo: any; intHi: any; intLo: any; logHi: any; logLo: any; mulHi: any; mulLo: any; next: any; prev: any; sinHi: any; sinLo: any; sinhHi: any; sinhLo: any; sqrtHi: any; sqrtLo: any; subHi: any; subLo: any; tanHi: any; tanLo: any; tanhHi: any; tanhLo: any } = ...

Alias

module:interval-arithmetic/round-math

Type declaration

  • safeNext: ((v: number) => number)
      • (v: number): number
      • Computes the next IEEE floating point representation of v

        Example

        Interval.round.safeNext(1)          // 1.0000000000000002
        Interval.round.safeNext(3) // 3.0000000000000004
        Interval.round.safeNext(-Infinity) // -Infinity

        Returns

        Function

        Parameters

        • v: number

        Returns number

  • safePrev: ((v: number) => number)
      • (v: number): number
      • Computes the previous IEEE floating point representation of v

        Example

        Interval.round.safePrev(1)          // 0.9999999999999999
        Interval.round.safePrev(3) // 2.9999999999999996
        Interval.round.safePrev(Infinity) // Infinity

        Returns

        Function

        Parameters

        • v: number

        Returns number

  • acosHi:function
    • Parameters

      • x: number

      Returns number

  • acosLo:function
    • Parameters

      • x: number

      Returns number

  • addHi:function
    • Parameters

      • x: number
      • y: number

      Returns number

  • addLo:function
    • Parameters

      • x: number
      • y: number

      Returns number

  • asinHi:function
    • Parameters

      • x: number

      Returns number

  • asinLo:function
    • Parameters

      • x: number

      Returns number

  • atanHi:function
    • Parameters

      • x: number

      Returns number

  • atanLo:function
    • Parameters

      • x: number

      Returns number

  • cosHi:function
    • Parameters

      • x: number

      Returns number

  • cosLo:function
    • Parameters

      • x: number

      Returns number

  • coshHi:function
    • Parameters

      • x: number

      Returns number

  • coshLo:function
    • Parameters

      • x: number

      Returns number

  • disable:function
    • Most operations on intervals will cary the rounding error so that the resulting interval correctly represents all the possible values, this feature can be disabled by calling this method allowing a little boost in the performance while operating on intervals

      See

      module:interval-arithmetic/round-math.enable

      Example

      var x = Interval.add(
      Interval(1),
      Interval(1)
      )
      x // equal to {lo: 1.9999999999999998, hi: 2.0000000000000004}

      Interval.round.disable()
      var y = Interval.add(
      Interval(1),
      Interval(1)
      )
      y // equal to {lo: 2, hi: 2}

      Function

      Returns void

  • divHi:function
    • Parameters

      • x: number
      • y: number

      Returns number

  • divLo:function
    • Parameters

      • x: number
      • y: number

      Returns number

  • enable:function
    • Enables IEEE previous/next floating point wrapping of values (enabled by default)

      See

      module:interval-arithmetic/round-math.disable

      Example

      var x = Interval.add(
      Interval(1),
      Interval(1)
      )
      x // equal to {lo: 1.9999999999999998, hi: 2.0000000000000004}

      Interval.round.disable()
      var y = Interval.add(
      Interval(1),
      Interval(1)
      )
      y // equal to {lo: 2, hi: 2}

      Interval.round.enable()
      var z = Interval.add(
      Interval(1),
      Interval(1)
      )
      z // equal to {lo: 1.9999999999999998, hi: 2.0000000000000004}

      Function

      Returns void

  • expHi:function
    • Parameters

      • x: number

      Returns number

  • expLo:function
    • Parameters

      • x: number

      Returns number

  • intHi:function
    • Parameters

      • x: number

      Returns number

  • intLo:function
    • Parameters

      • x: number

      Returns number

  • logHi:function
    • Parameters

      • x: number

      Returns number

  • logLo:function
    • Parameters

      • x: number

      Returns number

  • mulHi:function
    • Parameters

      • x: number
      • y: number

      Returns number

  • mulLo:function
    • Parameters

      • x: number
      • y: number

      Returns number

  • next:function
    • Parameters

      • x: number

      Returns number

  • prev:function
    • Parameters

      • x: number

      Returns number

  • sinHi:function
    • Parameters

      • x: number

      Returns number

  • sinLo:function
    • Parameters

      • x: number

      Returns number

  • sinhHi:function
    • Parameters

      • x: number

      Returns number

  • sinhLo:function
    • Parameters

      • x: number

      Returns number

  • sqrtHi:function
    • Parameters

      • x: number

      Returns number

  • sqrtLo:function
    • Parameters

      • x: number

      Returns number

  • subHi:function
    • Parameters

      • x: number
      • y: number

      Returns number

  • subLo:function
    • Parameters

      • x: number
      • y: number

      Returns number

  • tanHi:function
    • Parameters

      • x: number

      Returns number

  • tanLo:function
    • Parameters

      • x: number

      Returns number

  • tanhHi:function
    • Parameters

      • x: number

      Returns number

  • tanhLo:function
    • Parameters

      • x: number

      Returns number

Generated using TypeDoc