Average Error: 14.0 → 0.2
Time: 4.9s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{\frac{\sin x}{x}}{\frac{1}{\sinh y}}\]
\frac{\sin x \cdot \sinh y}{x}
\frac{\frac{\sin x}{x}}{\frac{1}{\sinh y}}
double f(double x, double y) {
        double r507894 = x;
        double r507895 = sin(r507894);
        double r507896 = y;
        double r507897 = sinh(r507896);
        double r507898 = r507895 * r507897;
        double r507899 = r507898 / r507894;
        return r507899;
}

double f(double x, double y) {
        double r507900 = x;
        double r507901 = sin(r507900);
        double r507902 = r507901 / r507900;
        double r507903 = 1.0;
        double r507904 = y;
        double r507905 = sinh(r507904);
        double r507906 = r507903 / r507905;
        double r507907 = r507902 / r507906;
        return r507907;
}

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

Derivation

  1. Initial program 14.0

    \[\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 div-inv0.9

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

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

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

Reproduce

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