Average Error: 13.9 → 0.8
Time: 16.2s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{\sin x}{\frac{x}{\sinh y}}\]
\frac{\sin x \cdot \sinh y}{x}
\frac{\sin x}{\frac{x}{\sinh y}}
double f(double x, double y) {
        double r458047 = x;
        double r458048 = sin(r458047);
        double r458049 = y;
        double r458050 = sinh(r458049);
        double r458051 = r458048 * r458050;
        double r458052 = r458051 / r458047;
        return r458052;
}

double f(double x, double y) {
        double r458053 = x;
        double r458054 = sin(r458053);
        double r458055 = y;
        double r458056 = sinh(r458055);
        double r458057 = r458053 / r458056;
        double r458058 = r458054 / r458057;
        return r458058;
}

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.8
\[\sin x \cdot \frac{\sinh y}{x}\]

Derivation

  1. Initial program 13.9

    \[\frac{\sin x \cdot \sinh y}{x}\]
  2. Simplified0.8

    \[\leadsto \color{blue}{\frac{\sin x}{\frac{x}{\sinh y}}}\]
  3. Final simplification0.8

    \[\leadsto \frac{\sin x}{\frac{x}{\sinh y}}\]

Reproduce

herbie shell --seed 2019174 
(FPCore (x y)
  :name "Linear.Quaternion:$ccosh from linear-1.19.1.3"

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

  (/ (* (sin x) (sinh y)) x))