Average Error: 14.2 → 0.1
Time: 18.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 r24876514 = x;
        double r24876515 = sin(r24876514);
        double r24876516 = y;
        double r24876517 = sinh(r24876516);
        double r24876518 = r24876515 * r24876517;
        double r24876519 = r24876518 / r24876514;
        return r24876519;
}

double f(double x, double y) {
        double r24876520 = y;
        double r24876521 = sinh(r24876520);
        double r24876522 = x;
        double r24876523 = sin(r24876522);
        double r24876524 = r24876523 / r24876522;
        double r24876525 = r24876521 * r24876524;
        return r24876525;
}

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.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 \sinh y \cdot \frac{\sin x}{x}\]

Reproduce

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