Average Error: 0.1 → 0.1
Time: 2.7s
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 r158293 = x;
        double r158294 = y;
        double r158295 = sin(r158294);
        double r158296 = r158295 / r158294;
        double r158297 = r158293 * r158296;
        return r158297;
}

double f(double x, double y) {
        double r158298 = x;
        double r158299 = y;
        double r158300 = sin(r158299);
        double r158301 = r158300 / r158299;
        double r158302 = r158298 * r158301;
        return r158302;
}

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