Average Error: 0.1 → 0.1
Time: 18.1s
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 r9759862 = x;
        double r9759863 = y;
        double r9759864 = sin(r9759863);
        double r9759865 = r9759864 / r9759863;
        double r9759866 = r9759862 * r9759865;
        return r9759866;
}

double f(double x, double y) {
        double r9759867 = y;
        double r9759868 = sin(r9759867);
        double r9759869 = r9759868 / r9759867;
        double r9759870 = x;
        double r9759871 = r9759869 * r9759870;
        return r9759871;
}

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)))