Average Error: 0.1 → 0.1
Time: 3.6s
Precision: 64
\[x \cdot \frac{\sin y}{y}\]
\[x \cdot \frac{\sin y}{y}\]
x \cdot \frac{\sin y}{y}
x \cdot \frac{\sin y}{y}
double f(double x, double y) {
        double r188412 = x;
        double r188413 = y;
        double r188414 = sin(r188413);
        double r188415 = r188414 / r188413;
        double r188416 = r188412 * r188415;
        return r188416;
}

double f(double x, double y) {
        double r188417 = x;
        double r188418 = y;
        double r188419 = sin(r188418);
        double r188420 = r188419 / r188418;
        double r188421 = r188417 * r188420;
        return r188421;
}

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 x \cdot \frac{\sin y}{y}\]

Reproduce

herbie shell --seed 2020020 +o rules:numerics
(FPCore (x y)
  :name "Linear.Quaternion:$cexp from linear-1.19.1.3"
  :precision binary64
  (* x (/ (sin y) y)))