Average Error: 0.1 → 0.2
Time: 11.1s
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 r195716 = x;
        double r195717 = y;
        double r195718 = sin(r195717);
        double r195719 = r195718 / r195717;
        double r195720 = r195716 * r195719;
        return r195720;
}

double f(double x, double y) {
        double r195721 = x;
        double r195722 = 1.0;
        double r195723 = y;
        double r195724 = sin(r195723);
        double r195725 = r195723 / r195724;
        double r195726 = r195722 / r195725;
        double r195727 = r195721 * r195726;
        return r195727;
}

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