Average Error: 0.1 → 0.1
Time: 14.5s
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 r10243504 = x;
        double r10243505 = y;
        double r10243506 = sin(r10243505);
        double r10243507 = r10243506 / r10243505;
        double r10243508 = r10243504 * r10243507;
        return r10243508;
}

double f(double x, double y) {
        double r10243509 = y;
        double r10243510 = sin(r10243509);
        double r10243511 = r10243510 / r10243509;
        double r10243512 = x;
        double r10243513 = r10243511 * r10243512;
        return r10243513;
}

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