Average Error: 61.8 → 0.4
Time: 20.6s
Precision: 64
\[0.9000000000000000222044604925031308084726 \le t \le 1.100000000000000088817841970012523233891\]
\[\left(1 + t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right) \cdot \left(1 + t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right) + \left(-1 - 2 \cdot \left(t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right)\right)\]
\[\sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}} \cdot \left(t \cdot \left(t \cdot {\left(\sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}}\right)}^{3}\right)\right)\]
\left(1 + t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right) \cdot \left(1 + t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right) + \left(-1 - 2 \cdot \left(t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right)\right)
\sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}} \cdot \left(t \cdot \left(t \cdot {\left(\sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}}\right)}^{3}\right)\right)
double f(double t) {
        double r55542 = 1.0;
        double r55543 = t;
        double r55544 = 2e-16;
        double r55545 = r55543 * r55544;
        double r55546 = r55542 + r55545;
        double r55547 = r55546 * r55546;
        double r55548 = -1.0;
        double r55549 = 2.0;
        double r55550 = r55549 * r55545;
        double r55551 = r55548 - r55550;
        double r55552 = r55547 + r55551;
        return r55552;
}

double f(double t) {
        double r55553 = 3.9999999999999997e-32;
        double r55554 = sqrt(r55553);
        double r55555 = sqrt(r55554);
        double r55556 = t;
        double r55557 = 3.0;
        double r55558 = pow(r55555, r55557);
        double r55559 = r55556 * r55558;
        double r55560 = r55556 * r55559;
        double r55561 = r55555 * r55560;
        return r55561;
}

Error

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original61.8
Target50.6
Herbie0.4
\[\mathsf{fma}\left(1 + t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}, 1 + t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}, -1 - 2 \cdot \left(t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right)\right)\]

Derivation

  1. Initial program 61.8

    \[\left(1 + t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right) \cdot \left(1 + t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right) + \left(-1 - 2 \cdot \left(t \cdot 1.999999999999999958195573448069207123682 \cdot 10^{-16}\right)\right)\]
  2. Taylor expanded around 0 0.4

    \[\leadsto \color{blue}{3.999999999999999676487027278085939408227 \cdot 10^{-32} \cdot {t}^{2}}\]
  3. Using strategy rm
  4. Applied add-sqr-sqrt0.4

    \[\leadsto \color{blue}{\left(\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}} \cdot \sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}\right)} \cdot {t}^{2}\]
  5. Applied associate-*l*0.4

    \[\leadsto \color{blue}{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}} \cdot \left(\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}} \cdot {t}^{2}\right)}\]
  6. Using strategy rm
  7. Applied add-sqr-sqrt0.4

    \[\leadsto \sqrt{\color{blue}{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}} \cdot \sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}}} \cdot \left(\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}} \cdot {t}^{2}\right)\]
  8. Applied sqrt-prod0.4

    \[\leadsto \color{blue}{\left(\sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}} \cdot \sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}}\right)} \cdot \left(\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}} \cdot {t}^{2}\right)\]
  9. Applied associate-*l*0.4

    \[\leadsto \color{blue}{\sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}} \cdot \left(\sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}} \cdot \left(\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}} \cdot {t}^{2}\right)\right)}\]
  10. Simplified0.4

    \[\leadsto \sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}} \cdot \color{blue}{\left(t \cdot \left(t \cdot {\left(\sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}}\right)}^{3}\right)\right)}\]
  11. Final simplification0.4

    \[\leadsto \sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}} \cdot \left(t \cdot \left(t \cdot {\left(\sqrt{\sqrt{3.999999999999999676487027278085939408227 \cdot 10^{-32}}}\right)}^{3}\right)\right)\]

Reproduce

herbie shell --seed 2019347 
(FPCore (t)
  :name "fma_test1"
  :precision binary64
  :pre (<= 0.9 t 1.1)

  :herbie-target
  (fma (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16)) (- -1 (* 2 (* t 2e-16))))

  (+ (* (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16))) (- -1 (* 2 (* t 2e-16)))))