Average Error: 0.1 → 0.1
Time: 3.6s
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 r120552 = x;
        double r120553 = y;
        double r120554 = sin(r120553);
        double r120555 = r120554 / r120553;
        double r120556 = r120552 * r120555;
        return r120556;
}

double f(double x, double y) {
        double r120557 = x;
        double r120558 = y;
        double r120559 = sin(r120558);
        double r120560 = r120559 / r120558;
        double r120561 = r120557 * r120560;
        return r120561;
}

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 2020089 +o rules:numerics
(FPCore (x y)
  :name "Linear.Quaternion:$cexp from linear-1.19.1.3"
  :precision binary64
  (* x (/ (sin y) y)))