Average Error: 0.1 → 0.1
Time: 10.7s
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 r5666903 = x;
        double r5666904 = y;
        double r5666905 = sin(r5666904);
        double r5666906 = r5666905 / r5666904;
        double r5666907 = r5666903 * r5666906;
        return r5666907;
}

double f(double x, double y) {
        double r5666908 = y;
        double r5666909 = sin(r5666908);
        double r5666910 = r5666909 / r5666908;
        double r5666911 = x;
        double r5666912 = r5666910 * r5666911;
        return r5666912;
}

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 2019192 
(FPCore (x y)
  :name "Linear.Quaternion:$cexp from linear-1.19.1.3"
  (* x (/ (sin y) y)))