Average Error: 0.1 → 0.2
Time: 14.2s
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 r7217356 = x;
        double r7217357 = y;
        double r7217358 = sin(r7217357);
        double r7217359 = r7217358 / r7217357;
        double r7217360 = r7217356 * r7217359;
        return r7217360;
}

double f(double x, double y) {
        double r7217361 = x;
        double r7217362 = y;
        double r7217363 = sin(r7217362);
        double r7217364 = r7217362 / r7217363;
        double r7217365 = r7217361 / r7217364;
        return r7217365;
}

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