Average Error: 7.3 → 2.8
Time: 4.2s
Precision: binary64
\[\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}\]
\[\frac{x + \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}} \cdot \left(z \cdot \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}} \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}}\right)\right) - \frac{x}{z \cdot t - x}\right)}{x + 1}\]
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
\frac{x + \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}} \cdot \left(z \cdot \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}} \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}}\right)\right) - \frac{x}{z \cdot t - x}\right)}{x + 1}
double code(double x, double y, double z, double t) {
	return (((double) (x + (((double) (((double) (y * z)) - x)) / ((double) (((double) (t * z)) - x))))) / ((double) (x + 1.0)));
}
double code(double x, double y, double z, double t) {
	return (((double) (x + ((double) (((double) ((((double) cbrt(y)) / ((double) cbrt(((double) (((double) (z * t)) - x))))) * ((double) (z * ((double) ((((double) cbrt(y)) / ((double) cbrt(((double) (((double) (z * t)) - x))))) * (((double) cbrt(y)) / ((double) cbrt(((double) (((double) (z * t)) - x))))))))))) - (x / ((double) (((double) (z * t)) - x))))))) / ((double) (x + 1.0)));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original7.3
Target0.4
Herbie2.8
\[\frac{x + \left(\frac{y}{t - \frac{x}{z}} - \frac{x}{t \cdot z - x}\right)}{x + 1}\]

Derivation

  1. Initial program Error: 7.3 bits

    \[\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}\]
  2. Using strategy rm
  3. Applied div-subError: 7.3 bits

    \[\leadsto \frac{x + \color{blue}{\left(\frac{y \cdot z}{t \cdot z - x} - \frac{x}{t \cdot z - x}\right)}}{x + 1}\]
  4. SimplifiedError: 4.6 bits

    \[\leadsto \frac{x + \left(\color{blue}{z \cdot \frac{y}{z \cdot t - x}} - \frac{x}{t \cdot z - x}\right)}{x + 1}\]
  5. SimplifiedError: 4.6 bits

    \[\leadsto \frac{x + \left(z \cdot \frac{y}{z \cdot t - x} - \color{blue}{\frac{x}{z \cdot t - x}}\right)}{x + 1}\]
  6. Using strategy rm
  7. Applied add-cube-cbrtError: 4.9 bits

    \[\leadsto \frac{x + \left(z \cdot \frac{y}{\color{blue}{\left(\sqrt[3]{z \cdot t - x} \cdot \sqrt[3]{z \cdot t - x}\right) \cdot \sqrt[3]{z \cdot t - x}}} - \frac{x}{z \cdot t - x}\right)}{x + 1}\]
  8. Applied add-cube-cbrtError: 4.9 bits

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

    \[\leadsto \frac{x + \left(z \cdot \color{blue}{\left(\frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{z \cdot t - x} \cdot \sqrt[3]{z \cdot t - x}} \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}}\right)} - \frac{x}{z \cdot t - x}\right)}{x + 1}\]
  10. Applied associate-*r*Error: 2.8 bits

    \[\leadsto \frac{x + \left(\color{blue}{\left(z \cdot \frac{\sqrt[3]{y} \cdot \sqrt[3]{y}}{\sqrt[3]{z \cdot t - x} \cdot \sqrt[3]{z \cdot t - x}}\right) \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}}} - \frac{x}{z \cdot t - x}\right)}{x + 1}\]
  11. SimplifiedError: 2.8 bits

    \[\leadsto \frac{x + \left(\color{blue}{\left(z \cdot \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}} \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}}\right)\right)} \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}} - \frac{x}{z \cdot t - x}\right)}{x + 1}\]
  12. Final simplificationError: 2.8 bits

    \[\leadsto \frac{x + \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}} \cdot \left(z \cdot \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}} \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z \cdot t - x}}\right)\right) - \frac{x}{z \cdot t - x}\right)}{x + 1}\]

Reproduce

herbie shell --seed 2020200 
(FPCore (x y z t)
  :name "Diagrams.Trail:splitAtParam  from diagrams-lib-1.3.0.3, A"
  :precision binary64

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

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