Average Error: 14.1 → 0.2
Time: 25.8s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{\frac{\sin x}{x}}{\frac{1}{\sinh y}}\]
\frac{\sin x \cdot \sinh y}{x}
\frac{\frac{\sin x}{x}}{\frac{1}{\sinh y}}
double f(double x, double y) {
        double r639795 = x;
        double r639796 = sin(r639795);
        double r639797 = y;
        double r639798 = sinh(r639797);
        double r639799 = r639796 * r639798;
        double r639800 = r639799 / r639795;
        return r639800;
}

double f(double x, double y) {
        double r639801 = x;
        double r639802 = sin(r639801);
        double r639803 = r639802 / r639801;
        double r639804 = 1.0;
        double r639805 = y;
        double r639806 = sinh(r639805);
        double r639807 = r639804 / r639806;
        double r639808 = r639803 / r639807;
        return r639808;
}

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.1
Target0.2
Herbie0.2
\[\sin x \cdot \frac{\sinh y}{x}\]

Derivation

  1. Initial program 14.1

    \[\frac{\sin x \cdot \sinh y}{x}\]
  2. Using strategy rm
  3. Applied associate-/l*0.8

    \[\leadsto \color{blue}{\frac{\sin x}{\frac{x}{\sinh y}}}\]
  4. Using strategy rm
  5. Applied div-inv0.9

    \[\leadsto \frac{\sin x}{\color{blue}{x \cdot \frac{1}{\sinh y}}}\]
  6. Applied associate-/r*0.2

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

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

Reproduce

herbie shell --seed 2020042 
(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))