Average Error: 0.1 → 0.2
Time: 5.5s
Precision: 64
\[x \cdot \sin y + z \cdot \cos y\]
\[x \cdot \sin y + \left(z \cdot {\left({\left(\cos y\right)}^{2}\right)}^{\frac{1}{3}}\right) \cdot \mathsf{log1p}\left(\mathsf{expm1}\left(\sqrt[3]{\cos y}\right)\right)\]
x \cdot \sin y + z \cdot \cos y
x \cdot \sin y + \left(z \cdot {\left({\left(\cos y\right)}^{2}\right)}^{\frac{1}{3}}\right) \cdot \mathsf{log1p}\left(\mathsf{expm1}\left(\sqrt[3]{\cos y}\right)\right)
double f(double x, double y, double z) {
        double r171999 = x;
        double r172000 = y;
        double r172001 = sin(r172000);
        double r172002 = r171999 * r172001;
        double r172003 = z;
        double r172004 = cos(r172000);
        double r172005 = r172003 * r172004;
        double r172006 = r172002 + r172005;
        return r172006;
}

double f(double x, double y, double z) {
        double r172007 = x;
        double r172008 = y;
        double r172009 = sin(r172008);
        double r172010 = r172007 * r172009;
        double r172011 = z;
        double r172012 = cos(r172008);
        double r172013 = 2.0;
        double r172014 = pow(r172012, r172013);
        double r172015 = 0.3333333333333333;
        double r172016 = pow(r172014, r172015);
        double r172017 = r172011 * r172016;
        double r172018 = cbrt(r172012);
        double r172019 = expm1(r172018);
        double r172020 = log1p(r172019);
        double r172021 = r172017 * r172020;
        double r172022 = r172010 + r172021;
        return r172022;
}

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 \sin y + z \cdot \cos y\]
  2. Using strategy rm
  3. Applied add-cube-cbrt0.4

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

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

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

    \[\leadsto x \cdot \sin y + \left(z \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}\]
  8. Applied pow-prod-down0.2

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

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

    \[\leadsto x \cdot \sin y + \left(z \cdot {\left({\left(\cos y\right)}^{2}\right)}^{\frac{1}{3}}\right) \cdot \color{blue}{\mathsf{log1p}\left(\mathsf{expm1}\left(\sqrt[3]{\cos y}\right)\right)}\]
  12. Final simplification0.2

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

Reproduce

herbie shell --seed 2020033 +o rules:numerics
(FPCore (x y z)
  :name "Diagrams.ThreeD.Transform:aboutX from diagrams-lib-1.3.0.3, B"
  :precision binary64
  (+ (* x (sin y)) (* z (cos y))))