Average Error: 13.9 → 0.1
Time: 17.7s
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 r404677 = x;
        double r404678 = sin(r404677);
        double r404679 = y;
        double r404680 = sinh(r404679);
        double r404681 = r404678 * r404680;
        double r404682 = r404681 / r404677;
        return r404682;
}

double f(double x, double y) {
        double r404683 = y;
        double r404684 = sinh(r404683);
        double r404685 = x;
        double r404686 = sin(r404685);
        double r404687 = r404686 / r404685;
        double r404688 = r404684 * r404687;
        return r404688;
}

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

Derivation

  1. Initial program 13.9

    \[\frac{\sin x \cdot \sinh y}{x}\]
  2. Simplified0.8

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

    \[\leadsto \frac{\sin x}{\color{blue}{x \cdot \frac{1}{\sinh y}}}\]
  5. Applied associate-/r*0.2

    \[\leadsto \color{blue}{\frac{\frac{\sin x}{x}}{\frac{1}{\sinh y}}}\]
  6. Using strategy rm
  7. Applied div-inv0.2

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

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

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

Reproduce

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