Average Error: 0.2 → 0.2
Time: 5.4s
Precision: binary64
\[\cosh x \cdot \frac{\sin y}{y}\]
\[\frac{\sin y \cdot \cosh x}{y}\]
\cosh x \cdot \frac{\sin y}{y}
\frac{\sin y \cdot \cosh x}{y}
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
(FPCore (x y) :precision binary64 (/ (* (sin y) (cosh x)) y))
double code(double x, double y) {
	return ((double) (((double) cosh(x)) * (((double) sin(y)) / y)));
}
double code(double x, double y) {
	return (((double) (((double) sin(y)) * ((double) cosh(x)))) / 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

Original0.2
Target0.2
Herbie0.2
\[\frac{\cosh x \cdot \sin y}{y}\]

Derivation

  1. Initial program 0.2

    \[\cosh x \cdot \frac{\sin y}{y}\]
  2. Using strategy rm
  3. Applied associate-*r/0.2

    \[\leadsto \color{blue}{\frac{\cosh x \cdot \sin y}{y}}\]
  4. Simplified0.2

    \[\leadsto \frac{\color{blue}{\sin y \cdot \cosh x}}{y}\]
  5. Final simplification0.2

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

Reproduce

herbie shell --seed 2020198 
(FPCore (x y)
  :name "Linear.Quaternion:$csinh from linear-1.19.1.3"
  :precision binary64

  :herbie-target
  (/ (* (cosh x) (sin y)) y)

  (* (cosh x) (/ (sin y) y)))