Average Error: 0.1 → 0.1
Time: 4.8s
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 r150565 = x;
        double r150566 = y;
        double r150567 = sin(r150566);
        double r150568 = r150567 / r150566;
        double r150569 = r150565 * r150568;
        return r150569;
}

double f(double x, double y) {
        double r150570 = x;
        double r150571 = y;
        double r150572 = sin(r150571);
        double r150573 = r150572 / r150571;
        double r150574 = r150570 * r150573;
        return r150574;
}

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