Average Error: 0.1 → 0.1
Time: 32.0s
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 r6479341 = x;
        double r6479342 = y;
        double r6479343 = sin(r6479342);
        double r6479344 = r6479343 / r6479342;
        double r6479345 = r6479341 * r6479344;
        return r6479345;
}

double f(double x, double y) {
        double r6479346 = y;
        double r6479347 = sin(r6479346);
        double r6479348 = r6479347 / r6479346;
        double r6479349 = x;
        double r6479350 = r6479348 * r6479349;
        return r6479350;
}

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. Taylor expanded around inf 0.1

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

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

Reproduce

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