Average Error: 0.1 → 0.1
Time: 13.5s
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 r6683675 = x;
        double r6683676 = y;
        double r6683677 = sin(r6683676);
        double r6683678 = r6683677 / r6683676;
        double r6683679 = r6683675 * r6683678;
        return r6683679;
}

double f(double x, double y) {
        double r6683680 = y;
        double r6683681 = sin(r6683680);
        double r6683682 = r6683681 / r6683680;
        double r6683683 = x;
        double r6683684 = r6683682 * r6683683;
        return r6683684;
}

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