Average Error: 0.1 → 0.2
Time: 15.0s
Precision: 64
\[x \cdot \frac{\sin y}{y}\]
\[\frac{x}{\frac{y}{\sin y}}\]
x \cdot \frac{\sin y}{y}
\frac{x}{\frac{y}{\sin y}}
double f(double x, double y) {
        double r88906 = x;
        double r88907 = y;
        double r88908 = sin(r88907);
        double r88909 = r88908 / r88907;
        double r88910 = r88906 * r88909;
        return r88910;
}

double f(double x, double y) {
        double r88911 = x;
        double r88912 = y;
        double r88913 = sin(r88912);
        double r88914 = r88912 / r88913;
        double r88915 = r88911 / r88914;
        return r88915;
}

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. Using strategy rm
  5. Applied un-div-inv0.2

    \[\leadsto \color{blue}{\frac{x}{\frac{y}{\sin y}}}\]
  6. Final simplification0.2

    \[\leadsto \frac{x}{\frac{y}{\sin y}}\]

Reproduce

herbie shell --seed 2019199 
(FPCore (x y)
  :name "Linear.Quaternion:$cexp from linear-1.19.1.3"
  (* x (/ (sin y) y)))