Average Error: 14.0 → 0.1
Time: 20.4s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\sinh y \cdot \frac{\sin x}{x}\]
\frac{\sin x \cdot \sinh y}{x}
\sinh y \cdot \frac{\sin x}{x}
double f(double x, double y) {
        double r393360 = x;
        double r393361 = sin(r393360);
        double r393362 = y;
        double r393363 = sinh(r393362);
        double r393364 = r393361 * r393363;
        double r393365 = r393364 / r393360;
        return r393365;
}

double f(double x, double y) {
        double r393366 = y;
        double r393367 = sinh(r393366);
        double r393368 = x;
        double r393369 = sin(r393368);
        double r393370 = r393369 / r393368;
        double r393371 = r393367 * r393370;
        return r393371;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original14.0
Target0.2
Herbie0.1
\[\sin x \cdot \frac{\sinh y}{x}\]

Derivation

  1. Initial program 14.0

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

    \[\leadsto \color{blue}{\sinh y \cdot \frac{\sin x}{x}}\]
  3. Using strategy rm
  4. Applied pow10.1

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

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

Reproduce

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