Average Error: 3.0 → 0.0
Time: 23.3s
Precision: 64
Internal Precision: 384
\[x + \frac{y}{1.1283791670955126 \cdot e^{z} - x \cdot y}\]
\[x + \frac{1}{\frac{1.1283791670955126}{y} \cdot e^{z} - x}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original3.0
Target0.0
Herbie0.0
\[x + \frac{1}{\frac{1.1283791670955126}{y} \cdot e^{z} - x}\]

Derivation

  1. Initial program 3.0

    \[x + \frac{y}{1.1283791670955126 \cdot e^{z} - x \cdot y}\]
  2. Using strategy rm
  3. Applied clear-num3.0

    \[\leadsto x + \color{blue}{\frac{1}{\frac{1.1283791670955126 \cdot e^{z} - x \cdot y}{y}}}\]
  4. Applied simplify0.0

    \[\leadsto x + \frac{1}{\color{blue}{\frac{1.1283791670955126}{y} \cdot e^{z} - x}}\]
  5. Removed slow pow expressions.

Runtime

Time bar (total: 23.3s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit
(FPCore (x y z)
  :name "Numeric.SpecFunctions:invErfc from math-functions-0.1.5.2, A"

  :herbie-target
  (+ x (/ 1 (- (* (/ 1.1283791670955126 y) (exp z)) x)))

  (+ x (/ y (- (* 1.1283791670955126 (exp z)) (* x y)))))