Average Error: 0.1 → 0.2
Time: 5.5s
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 r630150 = x;
        double r630151 = cosh(r630150);
        double r630152 = y;
        double r630153 = sin(r630152);
        double r630154 = r630153 / r630152;
        double r630155 = r630151 * r630154;
        return r630155;
}

double f(double x, double y) {
        double r630156 = x;
        double r630157 = cosh(r630156);
        double r630158 = 1.0;
        double r630159 = y;
        double r630160 = sin(r630159);
        double r630161 = r630159 / r630160;
        double r630162 = r630158 / r630161;
        double r630163 = r630157 * r630162;
        return r630163;
}

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

Derivation

  1. Initial program 0.1

    \[\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 2020034 
(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)))