Average Error: 13.9 → 0.3
Time: 7.1s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\sin x \cdot \left(\sinh y \cdot \frac{1}{x}\right)\]
\frac{\sin x \cdot \sinh y}{x}
\sin x \cdot \left(\sinh y \cdot \frac{1}{x}\right)
double f(double x, double y) {
        double r2805 = x;
        double r2806 = sin(r2805);
        double r2807 = y;
        double r2808 = sinh(r2807);
        double r2809 = r2806 * r2808;
        double r2810 = r2809 / r2805;
        return r2810;
}

double f(double x, double y) {
        double r2811 = x;
        double r2812 = sin(r2811);
        double r2813 = y;
        double r2814 = sinh(r2813);
        double r2815 = 1.0;
        double r2816 = r2815 / r2811;
        double r2817 = r2814 * r2816;
        double r2818 = r2812 * r2817;
        return r2818;
}

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

Derivation

  1. Initial program 13.9

    \[\frac{\sin x \cdot \sinh y}{x}\]
  2. Using strategy rm
  3. Applied *-un-lft-identity13.9

    \[\leadsto \frac{\sin x \cdot \sinh y}{\color{blue}{1 \cdot x}}\]
  4. Applied times-frac0.2

    \[\leadsto \color{blue}{\frac{\sin x}{1} \cdot \frac{\sinh y}{x}}\]
  5. Simplified0.2

    \[\leadsto \color{blue}{\sin x} \cdot \frac{\sinh y}{x}\]
  6. Using strategy rm
  7. Applied div-inv0.3

    \[\leadsto \sin x \cdot \color{blue}{\left(\sinh y \cdot \frac{1}{x}\right)}\]
  8. Final simplification0.3

    \[\leadsto \sin x \cdot \left(\sinh y \cdot \frac{1}{x}\right)\]

Reproduce

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