Average Error: 0.1 → 0.1
Time: 14.2s
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 r5231038 = x;
        double r5231039 = y;
        double r5231040 = sin(r5231039);
        double r5231041 = r5231040 / r5231039;
        double r5231042 = r5231038 * r5231041;
        return r5231042;
}

double f(double x, double y) {
        double r5231043 = y;
        double r5231044 = sin(r5231043);
        double r5231045 = r5231044 / r5231043;
        double r5231046 = x;
        double r5231047 = r5231045 * r5231046;
        return r5231047;
}

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