Average Error: 14.3 → 0.2
Time: 33.6s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{\sinh y}{x} \cdot \sin x\]
\frac{\sin x \cdot \sinh y}{x}
\frac{\sinh y}{x} \cdot \sin x
double f(double x, double y) {
        double r355615 = x;
        double r355616 = sin(r355615);
        double r355617 = y;
        double r355618 = sinh(r355617);
        double r355619 = r355616 * r355618;
        double r355620 = r355619 / r355615;
        return r355620;
}

double f(double x, double y) {
        double r355621 = y;
        double r355622 = sinh(r355621);
        double r355623 = x;
        double r355624 = r355622 / r355623;
        double r355625 = sin(r355623);
        double r355626 = r355624 * r355625;
        return r355626;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original14.3
Target0.2
Herbie0.2
\[\sin x \cdot \frac{\sinh y}{x}\]

Derivation

  1. Initial program 14.3

    \[\frac{\sin x \cdot \sinh y}{x}\]
  2. Taylor expanded around inf 43.7

    \[\leadsto \color{blue}{\frac{\frac{1}{2} \cdot \left(\sin x \cdot e^{y}\right) - \frac{1}{2} \cdot \left(e^{-y} \cdot \sin x\right)}{x}}\]
  3. Simplified0.2

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

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

Reproduce

herbie shell --seed 2019326 
(FPCore (x y)
  :name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
  :precision binary64

  :herbie-target
  (* (sin x) (/ (sinh y) x))

  (/ (* (sin x) (sinh y)) x))