Average Error: 0.1 → 0.1
Time: 4.0s
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 r148627 = x;
        double r148628 = y;
        double r148629 = sin(r148628);
        double r148630 = r148629 / r148628;
        double r148631 = r148627 * r148630;
        return r148631;
}

double f(double x, double y) {
        double r148632 = x;
        double r148633 = y;
        double r148634 = sin(r148633);
        double r148635 = r148634 / r148633;
        double r148636 = r148632 * r148635;
        return r148636;
}

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