Average Error: 0.1 → 0.2
Time: 3.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 r110842 = x;
        double r110843 = y;
        double r110844 = sin(r110843);
        double r110845 = r110844 / r110843;
        double r110846 = r110842 * r110845;
        return r110846;
}

double f(double x, double y) {
        double r110847 = x;
        double r110848 = 1.0;
        double r110849 = y;
        double r110850 = sin(r110849);
        double r110851 = r110849 / r110850;
        double r110852 = r110848 / r110851;
        double r110853 = r110847 * r110852;
        return r110853;
}

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