Average Error: 0.1 → 0.1
Time: 13.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 r5218058 = x;
        double r5218059 = y;
        double r5218060 = sin(r5218059);
        double r5218061 = r5218060 / r5218059;
        double r5218062 = r5218058 * r5218061;
        return r5218062;
}

double f(double x, double y) {
        double r5218063 = y;
        double r5218064 = sin(r5218063);
        double r5218065 = r5218064 / r5218063;
        double r5218066 = x;
        double r5218067 = r5218065 * r5218066;
        return r5218067;
}

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