Average Error: 0.2 → 0.2
Time: 26.2s
Precision: 64
\[\cosh x \cdot \frac{\sin y}{y}\]
\[\cosh x \cdot \frac{1}{\frac{y}{\sin y}}\]
\cosh x \cdot \frac{\sin y}{y}
\cosh x \cdot \frac{1}{\frac{y}{\sin y}}
double f(double x, double y) {
        double r332125 = x;
        double r332126 = cosh(r332125);
        double r332127 = y;
        double r332128 = sin(r332127);
        double r332129 = r332128 / r332127;
        double r332130 = r332126 * r332129;
        return r332130;
}

double f(double x, double y) {
        double r332131 = x;
        double r332132 = cosh(r332131);
        double r332133 = 1.0;
        double r332134 = y;
        double r332135 = sin(r332134);
        double r332136 = r332134 / r332135;
        double r332137 = r332133 / r332136;
        double r332138 = r332132 * r332137;
        return r332138;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.2
Target0.2
Herbie0.2
\[\frac{\cosh x \cdot \sin y}{y}\]

Derivation

  1. Initial program 0.2

    \[\cosh x \cdot \frac{\sin y}{y}\]
  2. Using strategy rm
  3. Applied clear-num0.2

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

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

Reproduce

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

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

  (* (cosh x) (/ (sin y) y)))