Average Error: 1.2 → 0.6
Time: 4.1s
Precision: binary64
\[\]
\[\]
double code(double x, double y, double z, double t, double a) {
	return ((double) (x + ((double) (y * ((double) (((double) (z - t)) / ((double) (z - a))))))));
}
double code(double x, double y, double z, double t, double a) {
	return ((double) (x + ((double) (((double) (y * ((double) (((double) cbrt(((double) (z - t)))) * ((double) (((double) cbrt(((double) (z - t)))) / ((double) (((double) cbrt(((double) (z - a)))) * ((double) cbrt(((double) (z - a)))))))))))) * ((double) (((double) cbrt(((double) (z - t)))) / ((double) cbrt(((double) (z - a))))))))));
}

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

Original1.2
Target1.1
Herbie0.6
\[\]

Derivation

  1. Initial program 1.2

    \[\]
  2. Using strategy rm
  3. Applied add-cube-cbrt1.7

    \[\leadsto \]
  4. Applied add-cube-cbrt1.6

    \[\leadsto \]
  5. Applied times-frac1.6

    \[\leadsto \]
  6. Applied associate-*r*0.5

    \[\leadsto \]
  7. Simplified0.6

    \[\leadsto \]
  8. Final simplification0.6

    \[\leadsto \]

Reproduce

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

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

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