Average Error: 0.1 → 0.2
Time: 9.4s
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 r197869 = x;
        double r197870 = y;
        double r197871 = sin(r197870);
        double r197872 = r197871 / r197870;
        double r197873 = r197869 * r197872;
        return r197873;
}

double f(double x, double y) {
        double r197874 = x;
        double r197875 = 1.0;
        double r197876 = y;
        double r197877 = sin(r197876);
        double r197878 = r197876 / r197877;
        double r197879 = r197875 / r197878;
        double r197880 = r197874 * r197879;
        return r197880;
}

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