Average Error: 0.1 → 0.1
Time: 6.7s
Precision: 64
\[x \cdot \frac{\sin y}{y}\]
\[x \cdot \frac{\sin y}{y}\]
x \cdot \frac{\sin y}{y}
x \cdot \frac{\sin y}{y}
double f(double x, double y) {
        double r120355 = x;
        double r120356 = y;
        double r120357 = sin(r120356);
        double r120358 = r120357 / r120356;
        double r120359 = r120355 * r120358;
        return r120359;
}

double f(double x, double y) {
        double r120360 = x;
        double r120361 = y;
        double r120362 = sin(r120361);
        double r120363 = r120362 / r120361;
        double r120364 = r120360 * r120363;
        return r120364;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[x \cdot \frac{\sin y}{y}\]
  2. Final simplification0.1

    \[\leadsto x \cdot \frac{\sin y}{y}\]

Reproduce

herbie shell --seed 2020046 +o rules:numerics
(FPCore (x y)
  :name "Linear.Quaternion:$cexp from linear-1.19.1.3"
  :precision binary64
  (* x (/ (sin y) y)))