Average Error: 0.1 → 0.2
Time: 3.5s
Precision: 64
\[x \cdot \frac{\sin y}{y}\]
\[x \cdot \frac{1}{\frac{y}{\sin y}}\]
x \cdot \frac{\sin y}{y}
x \cdot \frac{1}{\frac{y}{\sin y}}
double f(double x, double y) {
        double r166554 = x;
        double r166555 = y;
        double r166556 = sin(r166555);
        double r166557 = r166556 / r166555;
        double r166558 = r166554 * r166557;
        return r166558;
}

double f(double x, double y) {
        double r166559 = x;
        double r166560 = 1.0;
        double r166561 = y;
        double r166562 = sin(r166561);
        double r166563 = r166561 / r166562;
        double r166564 = r166560 / r166563;
        double r166565 = r166559 * r166564;
        return r166565;
}

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 clear-num0.2

    \[\leadsto x \cdot \color{blue}{\frac{1}{\frac{y}{\sin y}}}\]
  4. Final simplification0.2

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

Reproduce

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