Average Error: 0.0 → 0.0
Time: 40.9s
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 r83003 = 0.70711;
        double r83004 = 2.30753;
        double r83005 = x;
        double r83006 = 0.27061;
        double r83007 = r83005 * r83006;
        double r83008 = r83004 + r83007;
        double r83009 = 1.0;
        double r83010 = 0.99229;
        double r83011 = 0.04481;
        double r83012 = r83005 * r83011;
        double r83013 = r83010 + r83012;
        double r83014 = r83005 * r83013;
        double r83015 = r83009 + r83014;
        double r83016 = r83008 / r83015;
        double r83017 = r83016 - r83005;
        double r83018 = r83003 * r83017;
        return r83018;
}

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

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)))