



Bits error versus x
| Original | 29.6 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 29.6
rmApplied flip--29.5
Taylor expanded around inf 0.2
rmApplied *-un-lft-identity0.2
Applied add-sqr-sqrt0.2
Applied hypot-def0.2
Final simplification0.2
herbie shell --seed 2019094 +o rules:numerics
(FPCore (x)
:name "2sqrt (example 3.1)"
:herbie-target
(/ 1 (+ (sqrt (+ x 1)) (sqrt x)))
(- (sqrt (+ x 1)) (sqrt x)))