ts-playground
    Preparing search index...
    • Map a value from the interval [0, +∞) to the interval [0, 1] using the arctangent function. This maps [0, +∞) to [0, π/2) and then scales it to [0, 1].

      Parameters

      • x: number

        in the range [0, +∞)

      Returns number

      number in the range [0, 1]