Average Error: 0.3 → 0.3
Time: 783.0ms
Precision: binary64
\[\frac{1}{1 + {x}^{2}}\]
\[\frac{1}{1 + {x}^{2}}\]
\frac{1}{1 + {x}^{2}}
\frac{1}{1 + {x}^{2}}
double code(double x) {
	return ((double) (1.0 / ((double) (1.0 + ((double) pow(x, 2.0))))));
}
double code(double x) {
	return ((double) (1.0 / ((double) (1.0 + ((double) pow(x, 2.0))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.3

    \[\frac{1}{1 + {x}^{2}}\]
  2. Final simplification0.3

    \[\leadsto \frac{1}{1 + {x}^{2}}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(/ 1 (+ 1 (pow x 2)))"
  :precision binary64
  (/ 1.0 (+ 1.0 (pow x 2.0))))