Average Error: 0.0 → 0.1
Time: 4.2s
Precision: binary64
\[\sin x \cdot \frac{\sinh y}{y}\]
\[\sqrt{\frac{\sinh y}{y}} \cdot \left(\sin x \cdot \sqrt{\frac{\sinh y}{y}}\right)\]
\sin x \cdot \frac{\sinh y}{y}
\sqrt{\frac{\sinh y}{y}} \cdot \left(\sin x \cdot \sqrt{\frac{\sinh y}{y}}\right)
double code(double x, double y) {
	return ((double) (((double) sin(x)) * (((double) sinh(y)) / y)));
}
double code(double x, double y) {
	return ((double) (((double) sqrt((((double) sinh(y)) / y))) * ((double) (((double) sin(x)) * ((double) sqrt((((double) sinh(y)) / y)))))));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\sin x \cdot \frac{\sinh y}{y}\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.1

    \[\leadsto \sin x \cdot \color{blue}{\left(\sqrt{\frac{\sinh y}{y}} \cdot \sqrt{\frac{\sinh y}{y}}\right)}\]
  4. Applied associate-*r*0.1

    \[\leadsto \color{blue}{\left(\sin x \cdot \sqrt{\frac{\sinh y}{y}}\right) \cdot \sqrt{\frac{\sinh y}{y}}}\]
  5. Final simplification0.1

    \[\leadsto \sqrt{\frac{\sinh y}{y}} \cdot \left(\sin x \cdot \sqrt{\frac{\sinh y}{y}}\right)\]

Reproduce

herbie shell --seed 2020196 
(FPCore (x y)
  :name "Linear.Quaternion:$ccos from linear-1.19.1.3"
  :precision binary64
  (* (sin x) (/ (sinh y) y)))