Average Error: 14.4 → 0.1
Time: 33.1s
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 r1067933 = x;
        double r1067934 = sin(r1067933);
        double r1067935 = y;
        double r1067936 = sinh(r1067935);
        double r1067937 = r1067934 * r1067936;
        double r1067938 = r1067937 / r1067933;
        return r1067938;
}

double f(double x, double y) {
        double r1067939 = y;
        double r1067940 = sinh(r1067939);
        double r1067941 = x;
        double r1067942 = sin(r1067941);
        double r1067943 = r1067942 / r1067941;
        double r1067944 = r1067940 * r1067943;
        return r1067944;
}

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

Derivation

  1. Initial program 14.4

    \[\frac{\sin x \cdot \sinh y}{x}\]
  2. Taylor expanded around inf 44.0

    \[\leadsto \color{blue}{\frac{\frac{1}{2} \cdot \left(\sin x \cdot e^{y}\right) - \frac{1}{2} \cdot \left(e^{-y} \cdot \sin x\right)}{x}}\]
  3. Simplified0.2

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

    \[\leadsto \color{blue}{\left(\sinh y \cdot \frac{1}{x}\right)} \cdot \sin x\]
  6. Applied associate-*l*0.2

    \[\leadsto \color{blue}{\sinh y \cdot \left(\frac{1}{x} \cdot \sin x\right)}\]
  7. Simplified0.1

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

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

Reproduce

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