Average Error: 0.1 → 0.2
Time: 12.7s
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 r171277 = x;
        double r171278 = y;
        double r171279 = sin(r171278);
        double r171280 = r171279 / r171278;
        double r171281 = r171277 * r171280;
        return r171281;
}

double f(double x, double y) {
        double r171282 = x;
        double r171283 = 1.0;
        double r171284 = y;
        double r171285 = sin(r171284);
        double r171286 = r171284 / r171285;
        double r171287 = r171283 / r171286;
        double r171288 = r171282 * r171287;
        return r171288;
}

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