Average Error: 25.9 → 25.9
Time: 1.5s
Precision: binary64
\[\sin \left(x + 1\right) + \tanh \left(x - 1\right)\]
\[\sin \left(x + 1\right) + \tanh \left(x - 1\right)\]
\sin \left(x + 1\right) + \tanh \left(x - 1\right)
\sin \left(x + 1\right) + \tanh \left(x - 1\right)
double code(double x) {
	return ((double) (((double) sin(((double) (x + 1.0)))) + ((double) tanh(((double) (x - 1.0))))));
}
double code(double x) {
	return ((double) (((double) sin(((double) (x + 1.0)))) + ((double) tanh(((double) (x - 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 25.9

    \[\sin \left(x + 1\right) + \tanh \left(x - 1\right)\]
  2. Final simplification25.9

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

Reproduce

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