Average Error: 0.1 → 0.1
Time: 8.6s
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 r2017878 = x;
        double r2017879 = y;
        double r2017880 = sin(r2017879);
        double r2017881 = r2017880 / r2017879;
        double r2017882 = r2017878 * r2017881;
        return r2017882;
}

double f(double x, double y) {
        double r2017883 = y;
        double r2017884 = sin(r2017883);
        double r2017885 = r2017884 / r2017883;
        double r2017886 = x;
        double r2017887 = r2017885 * r2017886;
        return r2017887;
}

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