Average Error: 2.8 → 0.1
Time: 10.0s
Precision: 64
\[x + \frac{y}{1.128379167095512558560699289955664426088 \cdot e^{z} - x \cdot y}\]
\[\frac{1}{\frac{1.128379167095512558560699289955664426088}{y} \cdot e^{z} - x} + x\]
x + \frac{y}{1.128379167095512558560699289955664426088 \cdot e^{z} - x \cdot y}
\frac{1}{\frac{1.128379167095512558560699289955664426088}{y} \cdot e^{z} - x} + x
double f(double x, double y, double z) {
        double r350683 = x;
        double r350684 = y;
        double r350685 = 1.1283791670955126;
        double r350686 = z;
        double r350687 = exp(r350686);
        double r350688 = r350685 * r350687;
        double r350689 = r350683 * r350684;
        double r350690 = r350688 - r350689;
        double r350691 = r350684 / r350690;
        double r350692 = r350683 + r350691;
        return r350692;
}

double f(double x, double y, double z) {
        double r350693 = 1.0;
        double r350694 = 1.1283791670955126;
        double r350695 = y;
        double r350696 = r350694 / r350695;
        double r350697 = z;
        double r350698 = exp(r350697);
        double r350699 = r350696 * r350698;
        double r350700 = x;
        double r350701 = r350699 - r350700;
        double r350702 = r350693 / r350701;
        double r350703 = r350702 + r350700;
        return r350703;
}

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.8
Target0.1
Herbie0.1
\[x + \frac{1}{\frac{1.128379167095512558560699289955664426088}{y} \cdot e^{z} - x}\]

Derivation

  1. Initial program 2.8

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

    \[\leadsto x + \color{blue}{\frac{1}{\frac{1.128379167095512558560699289955664426088 \cdot e^{z} - x \cdot y}{y}}}\]
  4. Using strategy rm
  5. Applied add-sqr-sqrt2.8

    \[\leadsto x + \frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{\frac{1.128379167095512558560699289955664426088 \cdot e^{z} - x \cdot y}{y}}\]
  6. Applied associate-/l*2.8

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

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

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

Reproduce

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

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

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