Average Error: 14.3 → 0.1
Time: 5.5s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{\sin x}{x} \cdot \sinh y\]
\frac{\sin x \cdot \sinh y}{x}
\frac{\sin x}{x} \cdot \sinh y
double f(double x, double y) {
        double r771399 = x;
        double r771400 = sin(r771399);
        double r771401 = y;
        double r771402 = sinh(r771401);
        double r771403 = r771400 * r771402;
        double r771404 = r771403 / r771399;
        return r771404;
}

double f(double x, double y) {
        double r771405 = x;
        double r771406 = sin(r771405);
        double r771407 = r771406 / r771405;
        double r771408 = y;
        double r771409 = sinh(r771408);
        double r771410 = r771407 * r771409;
        return r771410;
}

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

Derivation

  1. Initial program 14.3

    \[\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. Using strategy rm
  5. Applied associate-/r/0.1

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

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

Reproduce

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