Average Error: 0.1 → 0.1
Time: 4.5s
Precision: 64
\[x \cdot \frac{\sin y}{y}\]
\[\frac{\sin y}{y} \cdot x\]
x \cdot \frac{\sin y}{y}
\frac{\sin y}{y} \cdot x
double f(double x, double y) {
        double r124401 = x;
        double r124402 = y;
        double r124403 = sin(r124402);
        double r124404 = r124403 / r124402;
        double r124405 = r124401 * r124404;
        return r124405;
}

double f(double x, double y) {
        double r124406 = y;
        double r124407 = sin(r124406);
        double r124408 = r124407 / r124406;
        double r124409 = x;
        double r124410 = r124408 * r124409;
        return r124410;
}

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

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

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

Reproduce

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