Average Error: 0.0 → 0.0
Time: 4.9s
Precision: 64
\[\left(x + \sin y\right) + z \cdot \cos y\]
\[\left(x + \sin y\right) + z \cdot \cos y\]
\left(x + \sin y\right) + z \cdot \cos y
\left(x + \sin y\right) + z \cdot \cos y
double f(double x, double y, double z) {
        double r147142 = x;
        double r147143 = y;
        double r147144 = sin(r147143);
        double r147145 = r147142 + r147144;
        double r147146 = z;
        double r147147 = cos(r147143);
        double r147148 = r147146 * r147147;
        double r147149 = r147145 + r147148;
        return r147149;
}

double f(double x, double y, double z) {
        double r147150 = x;
        double r147151 = y;
        double r147152 = sin(r147151);
        double r147153 = r147150 + r147152;
        double r147154 = z;
        double r147155 = cos(r147151);
        double r147156 = r147154 * r147155;
        double r147157 = r147153 + r147156;
        return r147157;
}

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.0

    \[\left(x + \sin y\right) + z \cdot \cos y\]
  2. Final simplification0.0

    \[\leadsto \left(x + \sin y\right) + z \cdot \cos y\]

Reproduce

herbie shell --seed 2019353 +o rules:numerics
(FPCore (x y z)
  :name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, C"
  :precision binary64
  (+ (+ x (sin y)) (* z (cos y))))