Average Error: 0.1 → 0.2
Time: 10.6s
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 r149786 = x;
        double r149787 = y;
        double r149788 = sin(r149787);
        double r149789 = r149788 / r149787;
        double r149790 = r149786 * r149789;
        return r149790;
}

double f(double x, double y) {
        double r149791 = x;
        double r149792 = 1.0;
        double r149793 = y;
        double r149794 = sin(r149793);
        double r149795 = r149793 / r149794;
        double r149796 = r149792 / r149795;
        double r149797 = r149791 * r149796;
        return r149797;
}

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