Average Error: 0.0 → 0.0
Time: 20.5s
Precision: 64
\[0.7071100000000000163069557856942992657423 \cdot \left(\frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} - x\right)\]
\[\frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} \cdot 0.7071100000000000163069557856942992657423 + 0.7071100000000000163069557856942992657423 \cdot \left(-x\right)\]
0.7071100000000000163069557856942992657423 \cdot \left(\frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} - x\right)
\frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} \cdot 0.7071100000000000163069557856942992657423 + 0.7071100000000000163069557856942992657423 \cdot \left(-x\right)
double f(double x) {
        double r83002 = 0.70711;
        double r83003 = 2.30753;
        double r83004 = x;
        double r83005 = 0.27061;
        double r83006 = r83004 * r83005;
        double r83007 = r83003 + r83006;
        double r83008 = 1.0;
        double r83009 = 0.99229;
        double r83010 = 0.04481;
        double r83011 = r83004 * r83010;
        double r83012 = r83009 + r83011;
        double r83013 = r83004 * r83012;
        double r83014 = r83008 + r83013;
        double r83015 = r83007 / r83014;
        double r83016 = r83015 - r83004;
        double r83017 = r83002 * r83016;
        return r83017;
}

double f(double x) {
        double r83018 = 2.30753;
        double r83019 = x;
        double r83020 = 0.27061;
        double r83021 = r83019 * r83020;
        double r83022 = r83018 + r83021;
        double r83023 = 1.0;
        double r83024 = 0.99229;
        double r83025 = 0.04481;
        double r83026 = r83019 * r83025;
        double r83027 = r83024 + r83026;
        double r83028 = r83019 * r83027;
        double r83029 = r83023 + r83028;
        double r83030 = r83022 / r83029;
        double r83031 = 0.70711;
        double r83032 = r83030 * r83031;
        double r83033 = -r83019;
        double r83034 = r83031 * r83033;
        double r83035 = r83032 + r83034;
        return r83035;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[0.7071100000000000163069557856942992657423 \cdot \left(\frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} - x\right)\]
  2. Using strategy rm
  3. Applied sub-neg0.0

    \[\leadsto 0.7071100000000000163069557856942992657423 \cdot \color{blue}{\left(\frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} + \left(-x\right)\right)}\]
  4. Applied distribute-lft-in0.0

    \[\leadsto \color{blue}{0.7071100000000000163069557856942992657423 \cdot \frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} + 0.7071100000000000163069557856942992657423 \cdot \left(-x\right)}\]
  5. Simplified0.0

    \[\leadsto \color{blue}{\frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} \cdot 0.7071100000000000163069557856942992657423} + 0.7071100000000000163069557856942992657423 \cdot \left(-x\right)\]
  6. Final simplification0.0

    \[\leadsto \frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} \cdot 0.7071100000000000163069557856942992657423 + 0.7071100000000000163069557856942992657423 \cdot \left(-x\right)\]

Reproduce

herbie shell --seed 2019325 
(FPCore (x)
  :name "Numeric.SpecFunctions:invErfc from math-functions-0.1.5.2, B"
  :precision binary64
  (* 0.70711 (- (/ (+ 2.30753 (* x 0.27061)) (+ 1 (* x (+ 0.99229 (* x 0.04481))))) x)))