Average Error: 0.1 → 0.1
Time: 13.7s
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 r10651189 = x;
        double r10651190 = y;
        double r10651191 = sin(r10651190);
        double r10651192 = r10651191 / r10651190;
        double r10651193 = r10651189 * r10651192;
        return r10651193;
}

double f(double x, double y) {
        double r10651194 = y;
        double r10651195 = sin(r10651194);
        double r10651196 = r10651195 / r10651194;
        double r10651197 = x;
        double r10651198 = r10651196 * r10651197;
        return r10651198;
}

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