Average Error: 0.1 → 0.1
Time: 4.1s
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 r145676 = x;
        double r145677 = y;
        double r145678 = sin(r145677);
        double r145679 = r145678 / r145677;
        double r145680 = r145676 * r145679;
        return r145680;
}

double f(double x, double y) {
        double r145681 = x;
        double r145682 = y;
        double r145683 = sin(r145682);
        double r145684 = r145683 / r145682;
        double r145685 = r145681 * r145684;
        return r145685;
}

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