Average Error: 0.2 → 0.2
Time: 24.4s
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 r333694 = x;
        double r333695 = cosh(r333694);
        double r333696 = y;
        double r333697 = sin(r333696);
        double r333698 = r333697 / r333696;
        double r333699 = r333695 * r333698;
        return r333699;
}

double f(double x, double y) {
        double r333700 = x;
        double r333701 = cosh(r333700);
        double r333702 = y;
        double r333703 = sin(r333702);
        double r333704 = r333703 / r333702;
        double r333705 = r333701 * r333704;
        return r333705;
}

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. Taylor expanded around inf 0.2

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

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

Reproduce

herbie shell --seed 2019347 +o rules:numerics
(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)))