Average Error: 10.9 → 1.3
Time: 5.9s
Precision: binary64
\[x + \frac{y \cdot \left(z - t\right)}{a - t}\]
\[x + \frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{\sqrt[3]{y}}{\frac{\sqrt[3]{a - t}}{z - t}}\]
x + \frac{y \cdot \left(z - t\right)}{a - t}
x + \frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{\sqrt[3]{y}}{\frac{\sqrt[3]{a - t}}{z - t}}
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- a t))))
(FPCore (x y z t a)
 :precision binary64
 (+
  x
  (*
   (/ (* (cbrt y) (cbrt y)) (* (cbrt (- a t)) (cbrt (- a t))))
   (/ (cbrt y) (/ (cbrt (- a t)) (- z t))))))
double code(double x, double y, double z, double t, double a) {
	return x + ((y * (z - t)) / (a - t));
}
double code(double x, double y, double z, double t, double a) {
	return x + (((cbrt(y) * cbrt(y)) / (cbrt(a - t) * cbrt(a - t))) * (cbrt(y) / (cbrt(a - t) / (z - t))));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original10.9
Target1.3
Herbie1.3
\[x + \frac{y}{\frac{a - t}{z - t}}\]

Derivation

  1. Initial program 10.9

    \[x + \frac{y \cdot \left(z - t\right)}{a - t}\]
  2. Using strategy rm
  3. Applied associate-/l*_binary64_174141.3

    \[\leadsto x + \color{blue}{\frac{y}{\frac{a - t}{z - t}}}\]
  4. Using strategy rm
  5. Applied *-un-lft-identity_binary64_174691.3

    \[\leadsto x + \frac{y}{\frac{a - t}{\color{blue}{1 \cdot \left(z - t\right)}}}\]
  6. Applied add-cube-cbrt_binary64_175041.8

    \[\leadsto x + \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}}{1 \cdot \left(z - t\right)}}\]
  7. Applied times-frac_binary64_174751.8

    \[\leadsto x + \frac{y}{\color{blue}{\frac{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}{1} \cdot \frac{\sqrt[3]{a - t}}{z - t}}}\]
  8. Applied add-cube-cbrt_binary64_175041.9

    \[\leadsto x + \frac{\color{blue}{\left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right) \cdot \sqrt[3]{y}}}{\frac{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}{1} \cdot \frac{\sqrt[3]{a - t}}{z - t}}\]
  9. Applied times-frac_binary64_174751.3

    \[\leadsto x + \color{blue}{\frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\frac{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}{1}} \cdot \frac{\sqrt[3]{y}}{\frac{\sqrt[3]{a - t}}{z - t}}}\]
  10. Simplified1.3

    \[\leadsto x + \color{blue}{\frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}} \cdot \frac{\sqrt[3]{y}}{\frac{\sqrt[3]{a - t}}{z - t}}\]
  11. Final simplification1.3

    \[\leadsto x + \frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{\sqrt[3]{y}}{\frac{\sqrt[3]{a - t}}{z - t}}\]

Reproduce

herbie shell --seed 2020342 
(FPCore (x y z t a)
  :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, B"
  :precision binary64

  :herbie-target
  (+ x (/ y (/ (- a t) (- z t))))

  (+ x (/ (* y (- z t)) (- a t))))