Average Error: 14.4 → 0.2
Time: 24.9s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{\frac{\sin x}{x}}{\frac{1}{\sinh y}}\]
\frac{\sin x \cdot \sinh y}{x}
\frac{\frac{\sin x}{x}}{\frac{1}{\sinh y}}
double f(double x, double y) {
        double r611310 = x;
        double r611311 = sin(r611310);
        double r611312 = y;
        double r611313 = sinh(r611312);
        double r611314 = r611311 * r611313;
        double r611315 = r611314 / r611310;
        return r611315;
}

double f(double x, double y) {
        double r611316 = x;
        double r611317 = sin(r611316);
        double r611318 = r611317 / r611316;
        double r611319 = 1.0;
        double r611320 = y;
        double r611321 = sinh(r611320);
        double r611322 = r611319 / r611321;
        double r611323 = r611318 / r611322;
        return r611323;
}

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

Derivation

  1. Initial program 14.4

    \[\frac{\sin x \cdot \sinh y}{x}\]
  2. Using strategy rm
  3. Applied associate-/l*0.7

    \[\leadsto \color{blue}{\frac{\sin x}{\frac{x}{\sinh y}}}\]
  4. Using strategy rm
  5. Applied div-inv0.8

    \[\leadsto \frac{\sin x}{\color{blue}{x \cdot \frac{1}{\sinh y}}}\]
  6. Applied associate-/r*0.2

    \[\leadsto \color{blue}{\frac{\frac{\sin x}{x}}{\frac{1}{\sinh y}}}\]
  7. Final simplification0.2

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

Reproduce

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