Average Error: 0.0 → 0.0
Time: 1.3s
Precision: binary64
\[\]
\[\]
double code(double x) {
	return ((double) (((double) (1.0 / ((double) (x - 1.0)))) + ((double) (x / ((double) (x + 1.0))))));
}
double code(double x) {
	return ((double) (((double) log(((double) exp(((double) (1.0 / ((double) (x - 1.0)))))))) + ((double) (x / ((double) (1.0 + 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.0

    \[\]
  2. Using strategy rm
  3. Applied add-log-exp0.0

    \[\leadsto \]
  4. Final simplification0.0

    \[\leadsto \]

Reproduce

herbie shell --seed 2020180 
(FPCore (x)
  :name "Asymptote B"
  :precision binary64
  (+ (/ 1.0 (- x 1.0)) (/ x (+ x 1.0))))