Average Error: 14.0 → 0.8
Time: 4.6s
Precision: binary64
\[\]
\[\]
double code(double x, double y) {
	return ((double) (((double) (((double) sin(x)) * ((double) sinh(y)))) / x));
}
double code(double x, double y) {
	return ((double) (((double) sin(x)) / ((double) (x / ((double) sinh(y))))));
}

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.8
\[\]

Derivation

  1. Initial program 14.0

    \[\]
  2. Simplified0.2

    \[\leadsto \]
  3. Using strategy rm
  4. Applied clear-num0.9

    \[\leadsto \]
  5. Using strategy rm
  6. Applied un-div-inv0.8

    \[\leadsto \]
  7. Final simplification0.8

    \[\leadsto \]

Reproduce

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