Average Error: 0.1 → 0.1
Time: 3.3s
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 r115786 = x;
        double r115787 = y;
        double r115788 = sin(r115787);
        double r115789 = r115788 / r115787;
        double r115790 = r115786 * r115789;
        return r115790;
}

double f(double x, double y) {
        double r115791 = x;
        double r115792 = y;
        double r115793 = sin(r115792);
        double r115794 = r115793 / r115792;
        double r115795 = r115791 * r115794;
        return r115795;
}

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