Average Error: 13.9 → 0.8
Time: 18.8s
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 r29518287 = x;
        double r29518288 = sin(r29518287);
        double r29518289 = y;
        double r29518290 = sinh(r29518289);
        double r29518291 = r29518288 * r29518290;
        double r29518292 = r29518291 / r29518287;
        return r29518292;
}

double f(double x, double y) {
        double r29518293 = x;
        double r29518294 = sin(r29518293);
        double r29518295 = y;
        double r29518296 = sinh(r29518295);
        double r29518297 = r29518293 / r29518296;
        double r29518298 = r29518294 / r29518297;
        return r29518298;
}

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. Using strategy rm
  3. Applied associate-/l*0.8

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

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

Reproduce

herbie shell --seed 2019174 +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))