


Bits error versus a



Bits error versus rand
Results
Initial program 0.1
rmApplied pow1/20.1
Applied pow-flip0.1
Simplified0.1
rmApplied *-commutative0.1
Final simplification0.1
herbie shell --seed 2019008
(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: 34.0s)Debug log
1 calls. Slowest were:
| 422.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.3b | (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) |
| 0.2b | (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand) |
| 0.1b | (sqrt (* 9 (- a (/ 1.0 3.0)))) |
| 0.1b | (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
4 calls. Slowest were:
| 8.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
| 7.0ms | (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand) |
| 3.0ms | (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) |
4 calls. Slowest were:
| 109.0ms | (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand) |
| 60.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
| 55.0ms | (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) |
| 34.0ms | (sqrt (* 9 (- a (/ 1.0 3.0)))) |
50 calls. Slowest were:
| 711.0ms | (- (* 1/3 (* (sqrt -3.0) rand)) (+ (* 4.5 (/ (* (pow a 2) rand) (sqrt -3.0))) (+ (* 1.5 (/ (* a rand) (sqrt -3.0))) (* 3.375 (/ (* (pow a 2) rand) (pow (sqrt -3.0) 3)))))) |
| 453.0ms | (* (+ a (/ 1.0 3.0)) (+ (* 1 1) (- (* (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand) (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand)) (* 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))))) |
| 448.0ms | (* (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0))) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
11 alts after pruning (11 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) |
| 0.1b | (pow (* 9 (- a (/ 1.0 3.0))) -1/2) |
| 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 | (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) |
| 4.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
| 1.0ms | (* 9 (- a (/ 1.0 3.0))) |
4 calls. Slowest were:
| 86.0ms | (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) |
| 50.0ms | (pow (* 9 (- a (/ 1.0 3.0))) -1/2) |
| 45.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:
| 425.0ms | (* (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0))) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
| 414.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))))) |
| 405.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.2b | (* (pow (* (- a (/ 1.0 3.0)) 9) -1/2) rand) |
| 0.1b | (pow (* (- a (/ 1.0 3.0)) 9) -1/2) |
| 0.1b | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* (- a (/ 1.0 3.0)) 9) -1/2) rand))) |
| 0.0b | (* (- a (/ 1.0 3.0)) 9) |
4 calls. Slowest were:
| 5.0ms | (* (pow (* (- a (/ 1.0 3.0)) 9) -1/2) rand) |
| 4.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* (- a (/ 1.0 3.0)) 9) -1/2) rand))) |
| 2.0ms | (* (- a (/ 1.0 3.0)) 9) |
4 calls. Slowest were:
| 92.0ms | (* (pow (* (- a (/ 1.0 3.0)) 9) -1/2) rand) |
| 50.0ms | (pow (* (- a (/ 1.0 3.0)) 9) -1/2) |
| 44.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* (- a (/ 1.0 3.0)) 9) -1/2) rand))) |
| 18.0ms | (* (- a (/ 1.0 3.0)) 9) |
44 calls. Slowest were:
| 441.0ms | (* (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0))) (+ 1 (* (pow (* (- a (/ 1.0 3.0)) 9) -1/2) rand))) |
| 385.0ms | (* (- (pow a 3) (pow (/ 1.0 3.0) 3)) 9) |
| 351.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* (- a (/ 1.0 3.0)) 9) -1/2) rand))) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.3b | (* (pow 9 -1/2) rand) |
| 0.3b | (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand)) |
| 0.1b | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand)))) |
| 0.0b | (pow (- a (/ 1.0 3.0)) -1/2) |
4 calls. Slowest were:
| 10.0ms | (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand)) |
| 4.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand)))) |
| 2.0ms | (* (pow 9 -1/2) rand) |
4 calls. Slowest were:
| 78.0ms | (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand)) |
| 53.0ms | (pow (- a (/ 1.0 3.0)) -1/2) |
| 37.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand)))) |
| 33.0ms | (* (pow 9 -1/2) rand) |
50 calls. Slowest were:
| 438.0ms | (* (- (pow a 3) (pow (/ 1.0 3.0) 3)) (- (* 1 1) (* (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand)) (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand))))) |
| 423.0ms | (* (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0))) (- (* 1 1) (* (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand)) (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand))))) |
| 392.0ms | (* (- (pow a 3) (pow (/ 1.0 3.0) 3)) (+ 1 (* (pow (- a (/ 1.0 3.0)) -1/2) (* (pow 9 -1/2) rand)))) |
8 alts after pruning (6 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