Average Error: 0.1 → 0.1
Time: 21.5s
Precision: 64
\[x \cdot \frac{\sin y}{y}\]
\[x \cdot \frac{\sin y}{y}\]
x \cdot \frac{\sin y}{y}
x \cdot \frac{\sin y}{y}
double f(double x, double y) {
        double r148101 = x;
        double r148102 = y;
        double r148103 = sin(r148102);
        double r148104 = r148103 / r148102;
        double r148105 = r148101 * r148104;
        return r148105;
}

double f(double x, double y) {
        double r148106 = x;
        double r148107 = y;
        double r148108 = sin(r148107);
        double r148109 = r148108 / r148107;
        double r148110 = r148106 * r148109;
        return r148110;
}

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 *-un-lft-identity0.1

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

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

Reproduce

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