Average Error: 0.0 → 0.1
Time: 3.3s
Precision: 64
Internal Precision: 320
\[\frac{x}{1 + \left|x\right|}\]
\[x \cdot \frac{1}{1 + \left|x\right|}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{x}{1 + \left|x\right|}\]
  2. Using strategy rm
  3. Applied div-inv0.1

    \[\leadsto \color{blue}{x \cdot \frac{1}{1 + \left|x\right|}}\]
  4. Final simplification0.1

    \[\leadsto x \cdot \frac{1}{1 + \left|x\right|}\]

Runtime

Time bar (total: 3.3s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (x)
  :name "x / (1 + abs(x))"
  (/ x (+ 1 (fabs x))))