Average Error: 13.4 → 0.1
Time: 35.0s
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 r378442 = x;
        double r378443 = sin(r378442);
        double r378444 = y;
        double r378445 = sinh(r378444);
        double r378446 = r378443 * r378445;
        double r378447 = r378446 / r378442;
        return r378447;
}

double f(double x, double y) {
        double r378448 = y;
        double r378449 = sinh(r378448);
        double r378450 = x;
        double r378451 = sin(r378450);
        double r378452 = r378451 / r378450;
        double r378453 = r378449 * r378452;
        return r378453;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original13.4
Target0.2
Herbie0.1
\[\sin x \cdot \frac{\sinh y}{x}\]

Derivation

  1. Initial program 13.4

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

    \[\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 2019322 
(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))