Average Error: 3.1 → 0.0
Time: 5.5s
Precision: binary64
\[x + \frac{y}{1.1283791670955126 \cdot e^{z} - x \cdot y}\]
\[x + \frac{1}{\frac{1.1283791670955126 \cdot e^{z}}{y} - x}\]
x + \frac{y}{1.1283791670955126 \cdot e^{z} - x \cdot y}
x + \frac{1}{\frac{1.1283791670955126 \cdot e^{z}}{y} - x}
(FPCore (x y z)
 :precision binary64
 (+ x (/ y (- (* 1.1283791670955126 (exp z)) (* x y)))))
(FPCore (x y z)
 :precision binary64
 (+ x (/ 1.0 (- (/ (* 1.1283791670955126 (exp z)) y) x))))
double code(double x, double y, double z) {
	return x + (y / ((1.1283791670955126 * exp(z)) - (x * y)));
}
double code(double x, double y, double z) {
	return x + (1.0 / (((1.1283791670955126 * exp(z)) / y) - x));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

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

Derivation

  1. Initial program 3.1

    \[x + \frac{y}{1.1283791670955126 \cdot e^{z} - x \cdot y}\]
  2. Using strategy rm
  3. Applied *-un-lft-identity_binary64_50683.1

    \[\leadsto x + \frac{\color{blue}{1 \cdot y}}{1.1283791670955126 \cdot e^{z} - x \cdot y}\]
  4. Applied associate-/l*_binary64_51323.1

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

    \[\leadsto x + \frac{1}{\color{blue}{\frac{1.1283791670955126 \cdot e^{z} - y \cdot x}{y}}}\]
  6. Taylor expanded around inf 0.0

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

    \[\leadsto x + \frac{1}{\color{blue}{\frac{1.1283791670955126 \cdot e^{z}}{y} - x}}\]
  8. Final simplification0.0

    \[\leadsto x + \frac{1}{\frac{1.1283791670955126 \cdot e^{z}}{y} - x}\]

Reproduce

herbie shell --seed 2020231 
(FPCore (x y z)
  :name "Numeric.SpecFunctions:invErfc from math-functions-0.1.5.2, A"
  :precision binary64

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

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