Average Error: 0.1 → 0.1
Time: 15.2s
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 r5442290 = x;
        double r5442291 = y;
        double r5442292 = sin(r5442291);
        double r5442293 = r5442292 / r5442291;
        double r5442294 = r5442290 * r5442293;
        return r5442294;
}

double f(double x, double y) {
        double r5442295 = y;
        double r5442296 = sin(r5442295);
        double r5442297 = r5442296 / r5442295;
        double r5442298 = x;
        double r5442299 = r5442297 * r5442298;
        return r5442299;
}

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