Average Error: 0.2 → 0.2
Time: 2.5s
Precision: binary64
\[\log \left(\sin x\right) + \tanh x\]
\[\log \left(\sin x\right) + \tanh x\]
\log \left(\sin x\right) + \tanh x
\log \left(\sin x\right) + \tanh x
double code(double x) {
	return ((double) (((double) log(((double) sin(x)))) + ((double) tanh(x))));
}
double code(double x) {
	return ((double) (((double) log(((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.2

    \[\log \left(\sin x\right) + \tanh x\]
  2. Final simplification0.2

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

Reproduce

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