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

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
Herbie3.1
\[x + \frac{1}{\frac{1.12837916709551256}{y} \cdot e^{z} - x}\]

Derivation

  1. Initial program 3.1

    \[x + \frac{y}{1.12837916709551256 \cdot e^{z} - x \cdot y}\]
  2. Final simplification3.1

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

Reproduce

herbie shell --seed 2020161 
(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)))))