Average Error: 0.1 → 0.1
Time: 14.0s
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 r8857779 = x;
        double r8857780 = y;
        double r8857781 = sin(r8857780);
        double r8857782 = r8857781 / r8857780;
        double r8857783 = r8857779 * r8857782;
        return r8857783;
}

double f(double x, double y) {
        double r8857784 = y;
        double r8857785 = sin(r8857784);
        double r8857786 = r8857785 / r8857784;
        double r8857787 = x;
        double r8857788 = r8857786 * r8857787;
        return r8857788;
}

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 \frac{\sin y}{y} \cdot x\]

Reproduce

herbie shell --seed 2019158 
(FPCore (x y)
  :name "Linear.Quaternion:$cexp from linear-1.19.1.3"
  (* x (/ (sin y) y)))