


Bits error versus a



Bits error versus rand
Results
Initial program 0.1
rmApplied pow1/20.1
Applied pow-flip0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019004
(FPCore (a rand)
:name "Octave 3.8, oct_fill_randg"
(* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))))
Time bar (total: 30.5s)Debug log
1 calls. Slowest were:
| 495.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.6b | (sqrt (* 9 (- a (/ 1.0 3.0)))) |
| 0.3b | (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) |
| 0.2b | (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand) |
| 0.1b | (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
4 calls. Slowest were:
| 4.0ms | (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand) |
| 4.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
| 3.0ms | (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) |
4 calls. Slowest were:
| 90.0ms | (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand) |
| 47.0ms | (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) |
| 41.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
| 31.0ms | (sqrt (* 9 (- a (/ 1.0 3.0)))) |
50 calls. Slowest were:
| 556.0ms | (* (- a (/ 1.0 3.0)) (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand)) |
| 421.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
| 399.0ms | (* (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0))) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.6b | (pow (* 9 (- a (/ 1.0 3.0))) -1/2) |
| 0.2b | (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) |
| 0.1b | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
| 0.0b | (* 9 (- a (/ 1.0 3.0))) |
4 calls. Slowest were:
| 4.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
| 4.0ms | (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) |
| 1.0ms | (* 9 (- a (/ 1.0 3.0))) |
4 calls. Slowest were:
| 73.0ms | (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) |
| 59.0ms | (pow (* 9 (- a (/ 1.0 3.0))) -1/2) |
| 49.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
| 20.0ms | (* 9 (- a (/ 1.0 3.0))) |
49 calls. Slowest were:
| 397.0ms | (* (+ a (/ 1.0 3.0)) (+ (* 1 1) (- (* (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand)) (* 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))))) |
| 330.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
| 313.0ms | (* (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0))) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (* (pow 9 -1/2) (* (pow (- a (/ 1.0 3.0)) -1/2) rand)) |
| 0.2b | (* (pow (- a (/ 1.0 3.0)) -1/2) rand) |
| 0.1b | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow 9 -1/2) (* (pow (- a (/ 1.0 3.0)) -1/2) rand)))) |
| 0.0b | (pow (- a (/ 1.0 3.0)) -1/2) |
4 calls. Slowest were:
| 7.0ms | (* (pow 9 -1/2) (* (pow (- a (/ 1.0 3.0)) -1/2) rand)) |
| 4.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow 9 -1/2) (* (pow (- a (/ 1.0 3.0)) -1/2) rand)))) |
| 3.0ms | (* (pow (- a (/ 1.0 3.0)) -1/2) rand) |
4 calls. Slowest were:
| 70.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow 9 -1/2) (* (pow (- a (/ 1.0 3.0)) -1/2) rand)))) |
| 63.0ms | (* (pow 9 -1/2) (* (pow (- a (/ 1.0 3.0)) -1/2) rand)) |
| 63.0ms | (pow (- a (/ 1.0 3.0)) -1/2) |
| 62.0ms | (* (pow (- a (/ 1.0 3.0)) -1/2) rand) |
49 calls. Slowest were:
| 404.0ms | (* (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0))) (- (* 1 1) (* (* (pow 9 -1/2) (* (pow (- a (/ 1.0 3.0)) -1/2) rand)) (* (pow 9 -1/2) (* (pow (- a (/ 1.0 3.0)) -1/2) rand))))) |
| 374.0ms | (* (+ a (/ 1.0 3.0)) (- 1 (* (pow 9 -1/2) (* (pow (- a (/ 1.0 3.0)) -1/2) rand)))) |
| 346.0ms | (+ (* 0.16666666666666666 (/ (exp (* -1/2 (- (log -1) (log (/ -1 a))))) a)) (+ (exp (* -1/2 (- (log -1) (log (/ -1 a))))) (* 0.041666666666666664 (/ (exp (* -1/2 (- (log -1) (log (/ -1 a))))) (pow a 2))))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.4b | (* (* (pow 9 -1/2) rand) (sqrt (- a (/ 1.0 3.0)))) |
| 0.3b | (* (pow 9 -1/2) rand) |
| 0.0b | (+ (* 1 (- a (/ 1.0 3.0))) (* (* (pow 9 -1/2) rand) (sqrt (- a (/ 1.0 3.0))))) |
| 0.0b | (sqrt (- a (/ 1.0 3.0))) |
4 calls. Slowest were:
| 10.0ms | (+ (* 1 (- a (/ 1.0 3.0))) (* (* (pow 9 -1/2) rand) (sqrt (- a (/ 1.0 3.0))))) |
| 7.0ms | (* (* (pow 9 -1/2) rand) (sqrt (- a (/ 1.0 3.0)))) |
| 2.0ms | (* (pow 9 -1/2) rand) |
4 calls. Slowest were:
| 50.0ms | (+ (* 1 (- a (/ 1.0 3.0))) (* (* (pow 9 -1/2) rand) (sqrt (- a (/ 1.0 3.0))))) |
| 43.0ms | (* (pow 9 -1/2) rand) |
| 38.0ms | (* (* (pow 9 -1/2) rand) (sqrt (- a (/ 1.0 3.0)))) |
| 17.0ms | (sqrt (- a (/ 1.0 3.0))) |
45 calls. Slowest were:
| 540.0ms | (* (* (* (* (pow 9 -1/2) rand) (* (pow 9 -1/2) rand)) (* (pow 9 -1/2) rand)) (* (* (sqrt (- a (/ 1.0 3.0))) (sqrt (- a (/ 1.0 3.0)))) (sqrt (- a (/ 1.0 3.0))))) |
| 307.0ms | (sqrt (- (pow a 3) (pow (/ 1.0 3.0) 3))) |
| 295.0ms | (- (+ (* 1/3 (* (sqrt (- 0.3333333333333333)) rand)) (* 1/6 (/ (* a rand) (sqrt (- 0.3333333333333333))))) (* 1/24 (/ (* (pow a 2) rand) (pow (sqrt (- 0.3333333333333333)) 3)))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b