


Bits error versus x
Results
Initial program 0.5
Final simplification0.5
herbie shell --seed 2019016 +o rules:numerics
(FPCore (x)
:name "sqrt times"
(* (sqrt (- x 1)) (sqrt x)))
Time bar (total: 6.9s)Debug log
| 1040× | (pre true 80) |
| 783× | (body nan 80) |
| 256× | (body real 80) |
| 1× | (body real 160) |
| 35.0ms | (* (sqrt (- x 1)) (sqrt x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.5b
Found 1 expressions with local error:
| 0.5b | (* (sqrt (- x 1)) (sqrt x)) |
| 6× | associate-*l* |
| 4× | add-cube-cbrt |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 3× | sqrt-prod |
| 3× | add-exp-log |
| 3× | associate-*r* |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 2× | sqrt-div |
| 2× | pow1/2 |
| 1× | add-log-exp |
| 1× | flip-- |
| 1× | log1p-expm1-u |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | sqrt-unprod |
| 1× | flip3-- |
| 1× | expm1-log1p-u |
| 7.0ms | (* (sqrt (- x 1)) (sqrt x)) |
| 32.0ms | (* (sqrt (- x 1)) (sqrt x)) |
| 1.1s | (* (* (* (sqrt (- x 1)) (sqrt (- x 1))) (sqrt (- x 1))) (* (* (sqrt x) (sqrt x)) (sqrt x))) |
| 79.0ms | (* (sqrt (- (* x x) (* 1 1))) (sqrt x)) |
| 76.0ms | (- x (+ (* 1/8 (/ 1 x)) 1/2)) |
| 45.0ms | (* (- x 1) x) |
| 21.0ms | (* (sqrt (- (pow x 3) (pow 1 3))) (sqrt x)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 0 expressions with local error:
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 1 expressions with local error:
| 29.3b | (sqrt (* (- x 1) x)) |
| 2× | associate-*l/ |
| 2× | sqrt-div |
| 1× | add-log-exp |
| 1× | flip-- |
| 1× | log1p-expm1-u |
| 1× | sqrt-prod |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | pow1/2 |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | *-un-lft-identity |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | add-sqr-sqrt |
| 3.0ms | (sqrt (* (- x 1) x)) |
| 19.0ms | (sqrt (* (- x 1) x)) |
| 125.0ms | (sqrt (* (- (* x x) (* 1 1)) x)) |
| 89.0ms | (- x (+ (* 1/8 (/ 1 x)) 1/2)) |
| 59.0ms | (- (+ (* 1/8 (/ 1 x)) 1/2) x) |
| 18.0ms | (sqrt (* (- (pow x 3) (pow 1 3)) x)) |
| 4.0ms | (sqrt (- x 1)) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
0% (0.5b remaining)
Error of 0.5b against oracle of 0.0b and baseline of 0.5b
| 32215× | (pre true 80) |
| 24215× | (body nan 80) |
| 7992× | (body real 80) |
| 8× | (body real 160) |