Average Error: 0.0 → 0.0
Time: 38.2s
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)\]
\[\mathsf{fma}\left(\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right), \sqrt[3]{{\left(\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)}\right)}^{3}}, -x\right) \cdot 0.7071100000000000163069557856942992657423\]
0.7071100000000000163069557856942992657423 \cdot \left(\frac{2.307529999999999859028321225196123123169 + x \cdot 0.2706100000000000171951342053944244980812}{1 + x \cdot \left(0.992290000000000005364597654988756403327 + x \cdot 0.04481000000000000260680366181986755691469\right)} - x\right)
\mathsf{fma}\left(\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right), \sqrt[3]{{\left(\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)}\right)}^{3}}, -x\right) \cdot 0.7071100000000000163069557856942992657423
double f(double x) {
        double r69120 = 0.70711;
        double r69121 = 2.30753;
        double r69122 = x;
        double r69123 = 0.27061;
        double r69124 = r69122 * r69123;
        double r69125 = r69121 + r69124;
        double r69126 = 1.0;
        double r69127 = 0.99229;
        double r69128 = 0.04481;
        double r69129 = r69122 * r69128;
        double r69130 = r69127 + r69129;
        double r69131 = r69122 * r69130;
        double r69132 = r69126 + r69131;
        double r69133 = r69125 / r69132;
        double r69134 = r69133 - r69122;
        double r69135 = r69120 * r69134;
        return r69135;
}

double f(double x) {
        double r69136 = 0.27061;
        double r69137 = x;
        double r69138 = 2.30753;
        double r69139 = fma(r69136, r69137, r69138);
        double r69140 = 1.0;
        double r69141 = 0.04481;
        double r69142 = 0.99229;
        double r69143 = fma(r69141, r69137, r69142);
        double r69144 = 1.0;
        double r69145 = fma(r69143, r69137, r69144);
        double r69146 = r69140 / r69145;
        double r69147 = 3.0;
        double r69148 = pow(r69146, r69147);
        double r69149 = cbrt(r69148);
        double r69150 = -r69137;
        double r69151 = fma(r69139, r69149, r69150);
        double r69152 = 0.70711;
        double r69153 = r69151 * r69152;
        return r69153;
}

Error

Bits error versus x

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. Simplified0.0

    \[\leadsto \color{blue}{\left(\frac{\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right)}{\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)} - x\right) \cdot 0.7071100000000000163069557856942992657423}\]
  3. Using strategy rm
  4. Applied div-inv0.0

    \[\leadsto \left(\color{blue}{\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right) \cdot \frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)}} - x\right) \cdot 0.7071100000000000163069557856942992657423\]
  5. Applied fma-neg0.0

    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right), \frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)}, -x\right)} \cdot 0.7071100000000000163069557856942992657423\]
  6. Using strategy rm
  7. Applied add-cbrt-cube0.0

    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right), \frac{1}{\color{blue}{\sqrt[3]{\left(\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)}}}, -x\right) \cdot 0.7071100000000000163069557856942992657423\]
  8. Applied add-cbrt-cube0.0

    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right), \frac{\color{blue}{\sqrt[3]{\left(1 \cdot 1\right) \cdot 1}}}{\sqrt[3]{\left(\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)}}, -x\right) \cdot 0.7071100000000000163069557856942992657423\]
  9. Applied cbrt-undiv0.0

    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right), \color{blue}{\sqrt[3]{\frac{\left(1 \cdot 1\right) \cdot 1}{\left(\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)}}}, -x\right) \cdot 0.7071100000000000163069557856942992657423\]
  10. Simplified0.0

    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right), \sqrt[3]{\color{blue}{{\left(\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)}\right)}^{3}}}, -x\right) \cdot 0.7071100000000000163069557856942992657423\]
  11. Final simplification0.0

    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(0.2706100000000000171951342053944244980812, x, 2.307529999999999859028321225196123123169\right), \sqrt[3]{{\left(\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(0.04481000000000000260680366181986755691469, x, 0.992290000000000005364597654988756403327\right), x, 1\right)}\right)}^{3}}, -x\right) \cdot 0.7071100000000000163069557856942992657423\]

Reproduce

herbie shell --seed 2019323 +o rules:numerics
(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)))