Average Error: 0.1 → 0.1
Time: 14.3s
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 r5693538 = x;
        double r5693539 = y;
        double r5693540 = sin(r5693539);
        double r5693541 = r5693540 / r5693539;
        double r5693542 = r5693538 * r5693541;
        return r5693542;
}

double f(double x, double y) {
        double r5693543 = y;
        double r5693544 = sin(r5693543);
        double r5693545 = r5693544 / r5693543;
        double r5693546 = x;
        double r5693547 = r5693545 * r5693546;
        return r5693547;
}

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