Average Error: 0.1 → 0.1
Time: 15.0s
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 r7220768 = x;
        double r7220769 = y;
        double r7220770 = sin(r7220769);
        double r7220771 = r7220770 / r7220769;
        double r7220772 = r7220768 * r7220771;
        return r7220772;
}

double f(double x, double y) {
        double r7220773 = y;
        double r7220774 = sin(r7220773);
        double r7220775 = r7220774 / r7220773;
        double r7220776 = x;
        double r7220777 = r7220775 * r7220776;
        return r7220777;
}

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