Average Error: 10.1 → 10.1
Time: 1.4s
Precision: binary64
\[logx - \log \left(x + 1\right)\]
\[logx - \log \left(x + 1\right)\]
logx - \log \left(x + 1\right)
logx - \log \left(x + 1\right)
double code(double logx, double x) {
	return ((double) (logx - ((double) log(((double) (x + 1.0))))));
}
double code(double logx, double x) {
	return ((double) (logx - ((double) log(((double) (x + 1.0))))));
}

Error

Bits error versus logx

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 10.1

    \[logx - \log \left(x + 1\right)\]
  2. Final simplification10.1

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

Reproduce

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