Average Error: 0.4 → 0.4
Time: 1.2s
Precision: binary64
\[\sin x + \tanh x\]
\[\sin x + \tanh x\]
\sin x + \tanh x
\sin x + \tanh x
double code(double x) {
	return ((double) (((double) sin(x)) + ((double) tanh(x))));
}
double code(double x) {
	return ((double) (((double) sin(x)) + ((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.4

    \[\sin x + \tanh x\]
  2. Final simplification0.4

    \[\leadsto \sin x + \tanh x\]

Reproduce

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