Average Error: 0.1 → 0.1
Time: 10.3s
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 r171075 = x;
        double r171076 = y;
        double r171077 = sin(r171076);
        double r171078 = r171077 / r171076;
        double r171079 = r171075 * r171078;
        return r171079;
}

double f(double x, double y) {
        double r171080 = x;
        double r171081 = y;
        double r171082 = sin(r171081);
        double r171083 = r171082 / r171081;
        double r171084 = r171080 * r171083;
        return r171084;
}

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