Average Error: 0.1 → 0.1
Time: 3.7s
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 r138204 = x;
        double r138205 = y;
        double r138206 = sin(r138205);
        double r138207 = r138206 / r138205;
        double r138208 = r138204 * r138207;
        return r138208;
}

double f(double x, double y) {
        double r138209 = y;
        double r138210 = sin(r138209);
        double r138211 = r138210 / r138209;
        double r138212 = x;
        double r138213 = r138211 * r138212;
        return r138213;
}

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