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

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

Bits error versus c

Bits error versus i

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

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

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

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

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

    \[\leadsto \left(\left(\left(\left(\left(\color{blue}{x \cdot \left(2 \cdot \log \left(\sqrt[3]{y}\right)\right)} + x \cdot \log \left(\sqrt[3]{y}\right)\right) + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\]
  7. Using strategy rm
  8. Applied *-un-lft-identity0.1

    \[\leadsto \left(\left(\left(\left(\left(x \cdot \left(2 \cdot \log \left(\sqrt[3]{y}\right)\right) + \color{blue}{\left(1 \cdot x\right)} \cdot \log \left(\sqrt[3]{y}\right)\right) + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\]
  9. Applied associate-*l*0.1

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

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

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

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

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

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

Reproduce

herbie shell --seed 2020078 
(FPCore (x y z t a b c i)
  :name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, B"
  :precision binary64
  (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))