Average Error: 0.1 → 0.1
Time: 17.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 r16273365 = x;
        double r16273366 = y;
        double r16273367 = sin(r16273366);
        double r16273368 = r16273367 / r16273366;
        double r16273369 = r16273365 * r16273368;
        return r16273369;
}

double f(double x, double y) {
        double r16273370 = x;
        double r16273371 = y;
        double r16273372 = sin(r16273371);
        double r16273373 = r16273372 / r16273371;
        double r16273374 = r16273370 * r16273373;
        return r16273374;
}

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