Average Error: 14.2 → 0.1
Time: 3.9s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{1}{\frac{x}{\sin x}} \cdot \sinh y\]
\frac{\sin x \cdot \sinh y}{x}
\frac{1}{\frac{x}{\sin x}} \cdot \sinh y
double f(double x, double y) {
        double r580538 = x;
        double r580539 = sin(r580538);
        double r580540 = y;
        double r580541 = sinh(r580540);
        double r580542 = r580539 * r580541;
        double r580543 = r580542 / r580538;
        return r580543;
}

double f(double x, double y) {
        double r580544 = 1.0;
        double r580545 = x;
        double r580546 = sin(r580545);
        double r580547 = r580545 / r580546;
        double r580548 = r580544 / r580547;
        double r580549 = y;
        double r580550 = sinh(r580549);
        double r580551 = r580548 * r580550;
        return r580551;
}

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

Derivation

  1. Initial program 14.2

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

    \[\leadsto \color{blue}{\frac{\sin x}{\frac{x}{\sinh y}}}\]
  4. Using strategy rm
  5. Applied associate-/r/0.1

    \[\leadsto \color{blue}{\frac{\sin x}{x} \cdot \sinh y}\]
  6. Using strategy rm
  7. Applied clear-num0.1

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

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

Reproduce

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