Average Error: 15.6 → 0.2
Time: 4.0s
Precision: binary64
\[\]
\[\]
double code(double x, double y, double z) {
	return ((double) (((double) (x * ((double) log(((double) (x / y)))))) - z));
}
double code(double x, double y, double z) {
	return ((double) (((double) (x * ((double) (((double) log(((double) (((double) cbrt(x)) / ((double) cbrt(y)))))) + ((double) (((double) log(((double) (((double) cbrt(x)) / ((double) cbrt(y)))))) * 2.0)))))) - z));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original15.6
Target7.8
Herbie0.2
\[\]

Derivation

  1. Initial program 15.6

    \[\]
  2. Using strategy rm
  3. Applied add-cube-cbrt15.6

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

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

    \[\leadsto \]
  6. Applied log-prod3.8

    \[\leadsto \]
  7. Simplified0.2

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

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (x y z)
  :name "Numeric.SpecFunctions.Extra:bd0 from math-functions-0.1.5.2"
  :precision binary64

  :herbie-target
  (if (< y 7.595077799083773e-308) (- (* x (log (/ x y))) z) (- (* x (- (log x) (log y))) z))

  (- (* x (log (/ x y))) z))