Average Error: 0.1 → 0.1
Time: 20.8s
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 r5604284 = x;
        double r5604285 = y;
        double r5604286 = sin(r5604285);
        double r5604287 = r5604286 / r5604285;
        double r5604288 = r5604284 * r5604287;
        return r5604288;
}

double f(double x, double y) {
        double r5604289 = y;
        double r5604290 = sin(r5604289);
        double r5604291 = r5604290 / r5604289;
        double r5604292 = x;
        double r5604293 = r5604291 * r5604292;
        return r5604293;
}

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)))