Average Error: 0.1 → 0.1
Time: 22.9s
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 r129369 = x;
        double r129370 = y;
        double r129371 = sin(r129370);
        double r129372 = r129371 / r129370;
        double r129373 = r129369 * r129372;
        return r129373;
}

double f(double x, double y) {
        double r129374 = x;
        double r129375 = y;
        double r129376 = sin(r129375);
        double r129377 = r129376 / r129375;
        double r129378 = r129374 * r129377;
        return r129378;
}

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. Using strategy rm
  3. Applied pow10.1

    \[\leadsto \color{blue}{{\left(x \cdot \frac{\sin y}{y}\right)}^{1}}\]
  4. Final simplification0.1

    \[\leadsto x \cdot \frac{\sin y}{y}\]

Reproduce

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