Average Error: 0.1 → 0.2
Time: 6.7s
Precision: 64
\[x \cdot \frac{\sin y}{y}\]
\[x \cdot \frac{1}{\frac{y}{\sin y}}\]
x \cdot \frac{\sin y}{y}
x \cdot \frac{1}{\frac{y}{\sin y}}
double f(double x, double y) {
        double r157798 = x;
        double r157799 = y;
        double r157800 = sin(r157799);
        double r157801 = r157800 / r157799;
        double r157802 = r157798 * r157801;
        return r157802;
}

double f(double x, double y) {
        double r157803 = x;
        double r157804 = 1.0;
        double r157805 = y;
        double r157806 = sin(r157805);
        double r157807 = r157805 / r157806;
        double r157808 = r157804 / r157807;
        double r157809 = r157803 * r157808;
        return r157809;
}

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. Using strategy rm
  3. Applied clear-num0.2

    \[\leadsto x \cdot \color{blue}{\frac{1}{\frac{y}{\sin y}}}\]
  4. Final simplification0.2

    \[\leadsto x \cdot \frac{1}{\frac{y}{\sin y}}\]

Reproduce

herbie shell --seed 2020018 
(FPCore (x y)
  :name "Linear.Quaternion:$cexp from linear-1.19.1.3"
  :precision binary64
  (* x (/ (sin y) y)))