Average Error: 0.1 → 0.1
Time: 12.6s
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 r130608 = x;
        double r130609 = y;
        double r130610 = sin(r130609);
        double r130611 = r130610 / r130609;
        double r130612 = r130608 * r130611;
        return r130612;
}

double f(double x, double y) {
        double r130613 = x;
        double r130614 = y;
        double r130615 = sin(r130614);
        double r130616 = r130614 / r130615;
        double r130617 = r130613 / r130616;
        return r130617;
}

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.1

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

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

Reproduce

herbie shell --seed 2019351 +o rules:numerics
(FPCore (x y)
  :name "Linear.Quaternion:$cexp from linear-1.19.1.3"
  :precision binary64
  (* x (/ (sin y) y)))