Average Error: 13.8 → 0.1
Time: 5.0s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{\frac{\sin x}{\frac{x}{2}} \cdot \sinh y}{2}\]
\frac{\sin x \cdot \sinh y}{x}
\frac{\frac{\sin x}{\frac{x}{2}} \cdot \sinh y}{2}
double f(double x, double y) {
        double r1045121 = x;
        double r1045122 = sin(r1045121);
        double r1045123 = y;
        double r1045124 = sinh(r1045123);
        double r1045125 = r1045122 * r1045124;
        double r1045126 = r1045125 / r1045121;
        return r1045126;
}

double f(double x, double y) {
        double r1045127 = x;
        double r1045128 = sin(r1045127);
        double r1045129 = 2.0;
        double r1045130 = r1045127 / r1045129;
        double r1045131 = r1045128 / r1045130;
        double r1045132 = y;
        double r1045133 = sinh(r1045132);
        double r1045134 = r1045131 * r1045133;
        double r1045135 = r1045134 / r1045129;
        return r1045135;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original13.8
Target0.2
Herbie0.1
\[\sin x \cdot \frac{\sinh y}{x}\]

Derivation

  1. Initial program 13.8

    \[\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 sinh-def43.1

    \[\leadsto \frac{\sin x}{\frac{x}{\color{blue}{\frac{e^{y} - e^{-y}}{2}}}}\]
  6. Applied associate-/r/43.1

    \[\leadsto \frac{\sin x}{\color{blue}{\frac{x}{e^{y} - e^{-y}} \cdot 2}}\]
  7. Applied associate-/r*43.1

    \[\leadsto \color{blue}{\frac{\frac{\sin x}{\frac{x}{e^{y} - e^{-y}}}}{2}}\]
  8. Simplified0.1

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

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

Reproduce

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