Average Error: 0.1 → 0.1
Time: 21.9s
Precision: 64
Internal precision: 128
\[1.0 - x \cdot \left(0.253 + x \cdot 0.12\right)\]
\[1.0 - \left(x \cdot 0.253 + x \cdot \left(x \cdot 0.12\right)\right)\]

Error

Bits error versus x

Target

Original0.1
Comparison0.1
Herbie0.1
\[ 1.0 - x \cdot \left(0.253 + x \cdot 0.12\right) \]

Derivation

  1. Initial program 0.1

    \[1.0 - x \cdot \left(0.253 + x \cdot 0.12\right)\]
  2. Using strategy rm
  3. Applied distribute-lft-in 0.1

    \[\leadsto 1.0 - \color{blue}{\left(x \cdot 0.253 + x \cdot \left(x \cdot 0.12\right)\right)}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 21.9s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(4278833189 481930062 11991308 403592311 1972208797 4182253760)'
(FPCore (x)
  :name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, A"

  :target
  (- 1.0 (* x (+ 0.253 (* x 0.12))))

  (- 1.0 (* x (+ 0.253 (* x 0.12)))))