Average Error: 0.1 → 0.1
Time: 17.6s
Precision: 64
\[\cosh x \cdot \frac{\sin y}{y}\]
\[\cosh x \cdot \frac{\sin y}{y}\]
\cosh x \cdot \frac{\sin y}{y}
\cosh x \cdot \frac{\sin y}{y}
double f(double x, double y) {
        double r779143 = x;
        double r779144 = cosh(r779143);
        double r779145 = y;
        double r779146 = sin(r779145);
        double r779147 = r779146 / r779145;
        double r779148 = r779144 * r779147;
        return r779148;
}

double f(double x, double y) {
        double r779149 = x;
        double r779150 = cosh(r779149);
        double r779151 = y;
        double r779152 = sin(r779151);
        double r779153 = r779152 / r779151;
        double r779154 = r779150 * r779153;
        return r779154;
}

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.1
\[\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. Using strategy rm
  5. Applied div-inv0.4

    \[\leadsto \cosh x \cdot \frac{1}{\color{blue}{y \cdot \frac{1}{\sin y}}}\]
  6. Taylor expanded around inf 0.1

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

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

Reproduce

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