Average Error: 0.1 → 0.1
Time: 13.6s
Precision: 64
\[x \cdot \frac{\sin y}{y}\]
\[\frac{\sin y}{y} \cdot x\]
x \cdot \frac{\sin y}{y}
\frac{\sin y}{y} \cdot x
double f(double x, double y) {
        double r5651611 = x;
        double r5651612 = y;
        double r5651613 = sin(r5651612);
        double r5651614 = r5651613 / r5651612;
        double r5651615 = r5651611 * r5651614;
        return r5651615;
}

double f(double x, double y) {
        double r5651616 = y;
        double r5651617 = sin(r5651616);
        double r5651618 = r5651617 / r5651616;
        double r5651619 = x;
        double r5651620 = r5651618 * r5651619;
        return r5651620;
}

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 \frac{\sin y}{y} \cdot x\]

Reproduce

herbie shell --seed 2019172 
(FPCore (x y)
  :name "Linear.Quaternion:$cexp from linear-1.19.1.3"
  (* x (/ (sin y) y)))