Average Error: 0.2 → 0.2
Time: 909.0ms
Precision: binary64
\[\tanh \left(x + 1\right) - \tanh x\]
\[\tanh \left(x + 1\right) - \tanh x\]
\tanh \left(x + 1\right) - \tanh x
\tanh \left(x + 1\right) - \tanh x
double code(double x) {
	return ((double) (((double) tanh(((double) (x + 1.0)))) - ((double) tanh(x))));
}
double code(double x) {
	return ((double) (((double) tanh(((double) (x + 1.0)))) - ((double) tanh(x))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[\tanh \left(x + 1\right) - \tanh x\]
  2. Final simplification0.2

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

Reproduce

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