Average Error: 0.1 → 0.1
Time: 10.5s
Precision: binary64
\[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b\]
\[\left(\left(\left(x + \left(z + y\right)\right) - \log \left({t}^{\frac{2}{3}}\right) \cdot z\right) - z \cdot \log \left(\sqrt[3]{t}\right)\right) + \left(a - 0.5\right) \cdot b\]
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\left(\left(\left(x + \left(z + y\right)\right) - \log \left({t}^{\frac{2}{3}}\right) \cdot z\right) - z \cdot \log \left(\sqrt[3]{t}\right)\right) + \left(a - 0.5\right) \cdot b
double code(double x, double y, double z, double t, double a, double b) {
	return ((double) (((double) (((double) (((double) (x + y)) + z)) - ((double) (z * ((double) log(t)))))) + ((double) (((double) (a - 0.5)) * b))));
}
double code(double x, double y, double z, double t, double a, double b) {
	return ((double) (((double) (((double) (((double) (x + ((double) (z + y)))) - ((double) (((double) log(((double) pow(t, 0.6666666666666666)))) * z)))) - ((double) (z * ((double) log(((double) cbrt(t)))))))) + ((double) (((double) (a - 0.5)) * b))));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.1
Target0.4
Herbie0.1
\[\left(\left(x + y\right) + \frac{\left(1 - {\left(\log t\right)}^{2}\right) \cdot z}{1 + \log t}\right) + \left(a - 0.5\right) \cdot b\]

Derivation

  1. Initial program 0.1

    \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b\]
  2. Using strategy rm
  3. Applied add-cube-cbrt0.1

    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log \color{blue}{\left(\left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right) \cdot \sqrt[3]{t}\right)}\right) + \left(a - 0.5\right) \cdot b\]
  4. Applied log-prod0.1

    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \color{blue}{\left(\log \left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right) + \log \left(\sqrt[3]{t}\right)\right)}\right) + \left(a - 0.5\right) \cdot b\]
  5. Applied distribute-lft-in0.1

    \[\leadsto \left(\left(\left(x + y\right) + z\right) - \color{blue}{\left(z \cdot \log \left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right) + z \cdot \log \left(\sqrt[3]{t}\right)\right)}\right) + \left(a - 0.5\right) \cdot b\]
  6. Applied associate--r+0.1

    \[\leadsto \color{blue}{\left(\left(\left(\left(x + y\right) + z\right) - z \cdot \log \left(\sqrt[3]{t} \cdot \sqrt[3]{t}\right)\right) - z \cdot \log \left(\sqrt[3]{t}\right)\right)} + \left(a - 0.5\right) \cdot b\]
  7. Simplified0.1

    \[\leadsto \left(\color{blue}{\left(\left(x + \left(z + y\right)\right) - \left(2 \cdot \log \left(\sqrt[3]{t}\right)\right) \cdot z\right)} - z \cdot \log \left(\sqrt[3]{t}\right)\right) + \left(a - 0.5\right) \cdot b\]
  8. Taylor expanded around 0 0.1

    \[\leadsto \left(\left(\left(x + \left(z + y\right)\right) - \color{blue}{z \cdot \left(\frac{2}{3} \cdot \log t + \frac{2}{3} \cdot \log 1\right)}\right) - z \cdot \log \left(\sqrt[3]{t}\right)\right) + \left(a - 0.5\right) \cdot b\]
  9. Simplified0.1

    \[\leadsto \left(\left(\left(x + \left(z + y\right)\right) - \color{blue}{\left(\frac{2}{3} \cdot \log t\right) \cdot z}\right) - z \cdot \log \left(\sqrt[3]{t}\right)\right) + \left(a - 0.5\right) \cdot b\]
  10. Using strategy rm
  11. Applied add-log-exp0.1

    \[\leadsto \left(\left(\left(x + \left(z + y\right)\right) - \color{blue}{\log \left(e^{\frac{2}{3} \cdot \log t}\right)} \cdot z\right) - z \cdot \log \left(\sqrt[3]{t}\right)\right) + \left(a - 0.5\right) \cdot b\]
  12. Simplified0.1

    \[\leadsto \left(\left(\left(x + \left(z + y\right)\right) - \log \color{blue}{\left({t}^{\frac{2}{3}}\right)} \cdot z\right) - z \cdot \log \left(\sqrt[3]{t}\right)\right) + \left(a - 0.5\right) \cdot b\]
  13. Final simplification0.1

    \[\leadsto \left(\left(\left(x + \left(z + y\right)\right) - \log \left({t}^{\frac{2}{3}}\right) \cdot z\right) - z \cdot \log \left(\sqrt[3]{t}\right)\right) + \left(a - 0.5\right) \cdot b\]

Reproduce

herbie shell --seed 2020182 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, A"
  :precision binary64

  :herbie-target
  (+ (+ (+ x y) (/ (* (- 1.0 (pow (log t) 2.0)) z) (+ 1.0 (log t)))) (* (- a 0.5) b))

  (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))