Average Error: 0.1 → 0.1
Time: 4.8s
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 r126781 = x;
        double r126782 = y;
        double r126783 = sin(r126782);
        double r126784 = r126783 / r126782;
        double r126785 = r126781 * r126784;
        return r126785;
}

double f(double x, double y) {
        double r126786 = x;
        double r126787 = y;
        double r126788 = sin(r126787);
        double r126789 = r126788 / r126787;
        double r126790 = r126786 * r126789;
        return r126790;
}

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. Final simplification0.1

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

Reproduce

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