Average Error: 0.1 → 0.0
Time: 3.9s
Precision: 64
Internal Precision: 576
\[1.0 - \frac{1}{r} \cdot \left|x\right|\]
\[1.0 - \frac{\left|x\right|}{r}\]

Error

Bits error versus r

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[1.0 - \frac{1}{r} \cdot \left|x\right|\]
  2. Initial simplification0.0

    \[\leadsto 1.0 - \frac{\left|x\right|}{r}\]
  3. Final simplification0.0

    \[\leadsto 1.0 - \frac{\left|x\right|}{r}\]

Runtime

Time bar (total: 3.9s)Debug log

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