Average Error: 0.1 → 0.2
Time: 16.5s
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 r110429 = x;
        double r110430 = y;
        double r110431 = sin(r110430);
        double r110432 = r110431 / r110430;
        double r110433 = r110429 * r110432;
        return r110433;
}

double f(double x, double y) {
        double r110434 = x;
        double r110435 = y;
        double r110436 = sin(r110435);
        double r110437 = r110435 / r110436;
        double r110438 = r110434 / r110437;
        return r110438;
}

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