Average Error: 0.1 → 0.1
Time: 3.2s
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 r145054 = x;
        double r145055 = y;
        double r145056 = sin(r145055);
        double r145057 = r145056 / r145055;
        double r145058 = r145054 * r145057;
        return r145058;
}

double f(double x, double y) {
        double r145059 = y;
        double r145060 = sin(r145059);
        double r145061 = r145060 / r145059;
        double r145062 = x;
        double r145063 = r145061 * r145062;
        return r145063;
}

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