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

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

Original1.9
Target2.1
Herbie0.9
\[\]

Derivation

  1. Initial program 1.9

    \[\]
  2. Using strategy rm
  3. Applied add-cube-cbrt2.4

    \[\leadsto \]
  4. Applied add-cube-cbrt2.5

    \[\leadsto \]
  5. Applied times-frac2.5

    \[\leadsto \]
  6. Applied associate-*l*0.9

    \[\leadsto \]
  7. Simplified0.9

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

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (x y z t)
  :name "Numeric.Signal.Multichannel:$cget from hsignal-0.2.7.1"
  :precision binary64

  :herbie-target
  (if (< z 2.759456554562692e-282) (+ (* (/ x y) (- z t)) t) (if (< z 2.326994450874436e-110) (+ (* x (/ (- z t) y)) t) (+ (* (/ x y) (- z t)) t)))

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