Average Error: 2.9 → 0.0
Time: 2.8s
Precision: 64
\[x + \frac{y}{1.12837916709551256 \cdot e^{z} - x \cdot y}\]
\[x + \frac{1}{1 \cdot \left(\frac{1.12837916709551256 \cdot e^{z}}{y} - x\right)}\]
x + \frac{y}{1.12837916709551256 \cdot e^{z} - x \cdot y}
x + \frac{1}{1 \cdot \left(\frac{1.12837916709551256 \cdot e^{z}}{y} - x\right)}
double f(double x, double y, double z) {
        double r514597 = x;
        double r514598 = y;
        double r514599 = 1.1283791670955126;
        double r514600 = z;
        double r514601 = exp(r514600);
        double r514602 = r514599 * r514601;
        double r514603 = r514597 * r514598;
        double r514604 = r514602 - r514603;
        double r514605 = r514598 / r514604;
        double r514606 = r514597 + r514605;
        return r514606;
}

double f(double x, double y, double z) {
        double r514607 = x;
        double r514608 = 1.0;
        double r514609 = 1.1283791670955126;
        double r514610 = z;
        double r514611 = exp(r514610);
        double r514612 = r514609 * r514611;
        double r514613 = y;
        double r514614 = r514612 / r514613;
        double r514615 = r514614 - r514607;
        double r514616 = r514608 * r514615;
        double r514617 = r514608 / r514616;
        double r514618 = r514607 + r514617;
        return r514618;
}

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

Original2.9
Target0.0
Herbie0.0
\[x + \frac{1}{\frac{1.12837916709551256}{y} \cdot e^{z} - x}\]

Derivation

  1. Initial program 2.9

    \[x + \frac{y}{1.12837916709551256 \cdot e^{z} - x \cdot y}\]
  2. Using strategy rm
  3. Applied clear-num2.9

    \[\leadsto x + \color{blue}{\frac{1}{\frac{1.12837916709551256 \cdot e^{z} - x \cdot y}{y}}}\]
  4. Using strategy rm
  5. Applied *-un-lft-identity2.9

    \[\leadsto x + \frac{1}{\frac{1.12837916709551256 \cdot e^{z} - x \cdot y}{\color{blue}{1 \cdot y}}}\]
  6. Applied *-un-lft-identity2.9

    \[\leadsto x + \frac{1}{\frac{\color{blue}{1 \cdot \left(1.12837916709551256 \cdot e^{z} - x \cdot y\right)}}{1 \cdot y}}\]
  7. Applied times-frac2.9

    \[\leadsto x + \frac{1}{\color{blue}{\frac{1}{1} \cdot \frac{1.12837916709551256 \cdot e^{z} - x \cdot y}{y}}}\]
  8. Simplified2.9

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

    \[\leadsto x + \frac{1}{1 \cdot \color{blue}{\left(1.12837916709551256 \cdot \frac{e^{z}}{y} - x\right)}}\]
  10. Using strategy rm
  11. Applied associate-*r/0.0

    \[\leadsto x + \frac{1}{1 \cdot \left(\color{blue}{\frac{1.12837916709551256 \cdot e^{z}}{y}} - x\right)}\]
  12. Final simplification0.0

    \[\leadsto x + \frac{1}{1 \cdot \left(\frac{1.12837916709551256 \cdot e^{z}}{y} - x\right)}\]

Reproduce

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

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

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