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 r142544 = x;
        double r142545 = y;
        double r142546 = sin(r142545);
        double r142547 = r142546 / r142545;
        double r142548 = r142544 * r142547;
        return r142548;
}

double f(double x, double y) {
        double r142549 = x;
        double r142550 = y;
        double r142551 = sin(r142550);
        double r142552 = r142551 / r142550;
        double r142553 = r142549 * r142552;
        return r142553;
}

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