Average Error: 0.1 → 0.1
Time: 9.9s
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 r5654977 = x;
        double r5654978 = y;
        double r5654979 = sin(r5654978);
        double r5654980 = r5654979 / r5654978;
        double r5654981 = r5654977 * r5654980;
        return r5654981;
}

double f(double x, double y) {
        double r5654982 = y;
        double r5654983 = sin(r5654982);
        double r5654984 = r5654983 / r5654982;
        double r5654985 = x;
        double r5654986 = r5654984 * r5654985;
        return r5654986;
}

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