Average Error: 0.0 → 0.0
Time: 1.9s
Precision: binary64
\[\cosh \left(\frac{\log \left(\frac{x + y}{x - y}\right)}{4}\right)\]
\[\cosh \left(\frac{\log \left(\frac{x + y}{x - y}\right)}{4}\right)\]
\cosh \left(\frac{\log \left(\frac{x + y}{x - y}\right)}{4}\right)
\cosh \left(\frac{\log \left(\frac{x + y}{x - y}\right)}{4}\right)
double code(double x, double y) {
	return ((double) cosh(((double) (((double) log(((double) (((double) (x + y)) / ((double) (x - y)))))) / 4.0))));
}
double code(double x, double y) {
	return ((double) cosh(((double) (((double) log(((double) (((double) (x + y)) / ((double) (x - y)))))) / 4.0))));
}

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

    \[\cosh \left(\frac{\log \left(\frac{x + y}{x - y}\right)}{4}\right)\]
  2. Final simplification0.0

    \[\leadsto \cosh \left(\frac{\log \left(\frac{x + y}{x - y}\right)}{4}\right)\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x y)
  :name "(cosh (/ (log (/ (+ x y) (- x y))) 4))"
  :precision binary64
  (cosh (/ (log (/ (+ x y) (- x y))) 4.0)))