Average Error: 0.1 → 0.2
Time: 14.5s
Precision: 64
\[x \cdot \cos y - z \cdot \sin y\]
\[\left(x \cdot {\left(\sqrt[3]{{\left({\left({\left(\cos y\right)}^{2}\right)}^{\left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right)}\right)}^{\left(\sqrt[3]{3}\right)}}\right)}^{\frac{1}{3}}\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]
x \cdot \cos y - z \cdot \sin y
\left(x \cdot {\left(\sqrt[3]{{\left({\left({\left(\cos y\right)}^{2}\right)}^{\left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right)}\right)}^{\left(\sqrt[3]{3}\right)}}\right)}^{\frac{1}{3}}\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y
double f(double x, double y, double z) {
        double r156333 = x;
        double r156334 = y;
        double r156335 = cos(r156334);
        double r156336 = r156333 * r156335;
        double r156337 = z;
        double r156338 = sin(r156334);
        double r156339 = r156337 * r156338;
        double r156340 = r156336 - r156339;
        return r156340;
}

double f(double x, double y, double z) {
        double r156341 = x;
        double r156342 = y;
        double r156343 = cos(r156342);
        double r156344 = 2.0;
        double r156345 = pow(r156343, r156344);
        double r156346 = 3.0;
        double r156347 = cbrt(r156346);
        double r156348 = r156347 * r156347;
        double r156349 = pow(r156345, r156348);
        double r156350 = pow(r156349, r156347);
        double r156351 = cbrt(r156350);
        double r156352 = 0.3333333333333333;
        double r156353 = pow(r156351, r156352);
        double r156354 = r156341 * r156353;
        double r156355 = cbrt(r156343);
        double r156356 = r156354 * r156355;
        double r156357 = z;
        double r156358 = sin(r156342);
        double r156359 = r156357 * r156358;
        double r156360 = r156356 - r156359;
        return r156360;
}

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

Derivation

  1. Initial program 0.1

    \[x \cdot \cos y - z \cdot \sin y\]
  2. Using strategy rm
  3. Applied add-cube-cbrt0.4

    \[\leadsto x \cdot \color{blue}{\left(\left(\sqrt[3]{\cos y} \cdot \sqrt[3]{\cos y}\right) \cdot \sqrt[3]{\cos y}\right)} - z \cdot \sin y\]
  4. Applied associate-*r*0.4

    \[\leadsto \color{blue}{\left(x \cdot \left(\sqrt[3]{\cos y} \cdot \sqrt[3]{\cos y}\right)\right) \cdot \sqrt[3]{\cos y}} - z \cdot \sin y\]
  5. Using strategy rm
  6. Applied pow1/315.8

    \[\leadsto \left(x \cdot \left(\sqrt[3]{\cos y} \cdot \color{blue}{{\left(\cos y\right)}^{\frac{1}{3}}}\right)\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]
  7. Applied pow1/315.7

    \[\leadsto \left(x \cdot \left(\color{blue}{{\left(\cos y\right)}^{\frac{1}{3}}} \cdot {\left(\cos y\right)}^{\frac{1}{3}}\right)\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]
  8. Applied pow-prod-down0.2

    \[\leadsto \left(x \cdot \color{blue}{{\left(\cos y \cdot \cos y\right)}^{\frac{1}{3}}}\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]
  9. Simplified0.2

    \[\leadsto \left(x \cdot {\color{blue}{\left({\left(\cos y\right)}^{2}\right)}}^{\frac{1}{3}}\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]
  10. Using strategy rm
  11. Applied add-cbrt-cube0.2

    \[\leadsto \left(x \cdot {\color{blue}{\left(\sqrt[3]{\left({\left(\cos y\right)}^{2} \cdot {\left(\cos y\right)}^{2}\right) \cdot {\left(\cos y\right)}^{2}}\right)}}^{\frac{1}{3}}\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]
  12. Simplified0.2

    \[\leadsto \left(x \cdot {\left(\sqrt[3]{\color{blue}{{\left({\left(\cos y\right)}^{2}\right)}^{3}}}\right)}^{\frac{1}{3}}\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]
  13. Using strategy rm
  14. Applied add-cube-cbrt0.2

    \[\leadsto \left(x \cdot {\left(\sqrt[3]{{\left({\left(\cos y\right)}^{2}\right)}^{\color{blue}{\left(\left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right) \cdot \sqrt[3]{3}\right)}}}\right)}^{\frac{1}{3}}\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]
  15. Applied pow-unpow0.2

    \[\leadsto \left(x \cdot {\left(\sqrt[3]{\color{blue}{{\left({\left({\left(\cos y\right)}^{2}\right)}^{\left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right)}\right)}^{\left(\sqrt[3]{3}\right)}}}\right)}^{\frac{1}{3}}\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]
  16. Final simplification0.2

    \[\leadsto \left(x \cdot {\left(\sqrt[3]{{\left({\left({\left(\cos y\right)}^{2}\right)}^{\left(\sqrt[3]{3} \cdot \sqrt[3]{3}\right)}\right)}^{\left(\sqrt[3]{3}\right)}}\right)}^{\frac{1}{3}}\right) \cdot \sqrt[3]{\cos y} - z \cdot \sin y\]

Reproduce

herbie shell --seed 2019208 
(FPCore (x y z)
  :name "Diagrams.ThreeD.Transform:aboutX from diagrams-lib-1.3.0.3, A"
  :precision binary64
  (- (* x (cos y)) (* z (sin y))))