Average Error: 0.1 → 0.1
Time: 3.4s
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 r132401 = x;
        double r132402 = y;
        double r132403 = sin(r132402);
        double r132404 = r132403 / r132402;
        double r132405 = r132401 * r132404;
        return r132405;
}

double f(double x, double y) {
        double r132406 = x;
        double r132407 = y;
        double r132408 = sin(r132407);
        double r132409 = r132408 / r132407;
        double r132410 = r132406 * r132409;
        return r132410;
}

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