Average Error: 0.1 → 0.2
Time: 20.3s
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 r131525 = x;
        double r131526 = y;
        double r131527 = sin(r131526);
        double r131528 = r131527 / r131526;
        double r131529 = r131525 * r131528;
        return r131529;
}

double f(double x, double y) {
        double r131530 = x;
        double r131531 = 1.0;
        double r131532 = y;
        double r131533 = sin(r131532);
        double r131534 = r131532 / r131533;
        double r131535 = r131531 / r131534;
        double r131536 = r131530 * r131535;
        return r131536;
}

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