Average Error: 13.5 → 0.1
Time: 4.4s
Precision: 64
\[\frac{\sin x \cdot \sinh y}{x}\]
\[\frac{1}{\frac{x}{\sin x}} \cdot \sinh y\]
\frac{\sin x \cdot \sinh y}{x}
\frac{1}{\frac{x}{\sin x}} \cdot \sinh y
double f(double x, double y) {
        double r645230 = x;
        double r645231 = sin(r645230);
        double r645232 = y;
        double r645233 = sinh(r645232);
        double r645234 = r645231 * r645233;
        double r645235 = r645234 / r645230;
        return r645235;
}

double f(double x, double y) {
        double r645236 = 1.0;
        double r645237 = x;
        double r645238 = sin(r645237);
        double r645239 = r645237 / r645238;
        double r645240 = r645236 / r645239;
        double r645241 = y;
        double r645242 = sinh(r645241);
        double r645243 = r645240 * r645242;
        return r645243;
}

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

Derivation

  1. Initial program 13.5

    \[\frac{\sin x \cdot \sinh y}{x}\]
  2. Using strategy rm
  3. Applied associate-/l*0.6

    \[\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. Using strategy rm
  7. Applied clear-num0.1

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

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

Reproduce

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