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 r142418 = x;
        double r142419 = y;
        double r142420 = sin(r142419);
        double r142421 = r142420 / r142419;
        double r142422 = r142418 * r142421;
        return r142422;
}

double f(double x, double y) {
        double r142423 = x;
        double r142424 = 1.0;
        double r142425 = y;
        double r142426 = sin(r142425);
        double r142427 = r142425 / r142426;
        double r142428 = r142424 / r142427;
        double r142429 = r142423 * r142428;
        return r142429;
}

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)))