Average Error: 0.1 → 0.2
Time: 4.2s
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 r187155 = x;
        double r187156 = y;
        double r187157 = sin(r187156);
        double r187158 = r187157 / r187156;
        double r187159 = r187155 * r187158;
        return r187159;
}

double f(double x, double y) {
        double r187160 = x;
        double r187161 = 1.0;
        double r187162 = y;
        double r187163 = sin(r187162);
        double r187164 = r187162 / r187163;
        double r187165 = r187161 / r187164;
        double r187166 = r187160 * r187165;
        return r187166;
}

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