Average Error: 58.2 → 58.2
Time: 2.4s
Precision: binary64
\[\cosh \left(x + 1\right) - \cosh 1\]
\[\cosh \left(x + 1\right) - \cosh 1\]
\cosh \left(x + 1\right) - \cosh 1
\cosh \left(x + 1\right) - \cosh 1
double code(double x) {
	return ((double) (((double) cosh(((double) (x + 1.0)))) - ((double) cosh(1.0))));
}
double code(double x) {
	return ((double) (((double) cosh(((double) (x + 1.0)))) - ((double) cosh(1.0))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 58.2

    \[\cosh \left(x + 1\right) - \cosh 1\]
  2. Final simplification58.2

    \[\leadsto \cosh \left(x + 1\right) - \cosh 1\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(- (cosh (+ x 1.0)) (cosh 1.0))"
  :precision binary64
  (- (cosh (+ x 1.0)) (cosh 1.0)))