


Bits error versus a



Bits error versus rand
Results
Initial program 0.1
rmApplied pow1/20.1
Applied pow-flip0.1
Simplified0.1
rmApplied distribute-lft-in0.1
rmApplied associate-*r*0.1
Final simplification0.1
herbie shell --seed 2019002 +o rules:numerics
(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: 31.7s)Debug log
1 calls. Slowest were:
| 225.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 | (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:
| 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) |
| 4.0ms | (sqrt (* 9 (- a (/ 1.0 3.0)))) |
4 calls. Slowest were:
| 76.0ms | (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand) |
| 51.0ms | (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) |
| 46.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
| 37.0ms | (sqrt (* 9 (- a (/ 1.0 3.0)))) |
50 calls. Slowest were:
| 693.0ms | (* (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0))) (+ 1 (* (/ 1 (sqrt (* 9 (- a (/ 1.0 3.0))))) rand))) |
| 679.0ms | (/ 1 (sqrt (* 9 (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0)))))) |
| 501.0ms | (+ (* 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)))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.4b | (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:
| 6.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:
| 66.0ms | (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) |
| 43.0ms | (pow (* 9 (- a (/ 1.0 3.0))) -1/2) |
| 36.0ms | (* (- a (/ 1.0 3.0)) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
| 17.0ms | (* 9 (- a (/ 1.0 3.0))) |
49 calls. Slowest were:
| 758.0ms | (* (- (* a a) (* (/ 1.0 3.0) (/ 1.0 3.0))) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
| 408.0ms | (+ (* 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)))) |
| 385.0ms | (* (- (pow a 3) (pow (/ 1.0 3.0) 3)) (+ 1 (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 6.6b | (* (- a (/ 1.0 3.0)) (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand)) |
| 0.4b | (pow (* 9 (- a (/ 1.0 3.0))) -1/2) |
| 0.2b | (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) |
| 0.0b | (* 9 (- a (/ 1.0 3.0))) |
4 calls. Slowest were:
| 10.0ms | (* (- a (/ 1.0 3.0)) (* (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:
| 105.0ms | (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) |
| 68.0ms | (* (- a (/ 1.0 3.0)) (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand)) |
| 68.0ms | (pow (* 9 (- a (/ 1.0 3.0))) -1/2) |
| 28.0ms | (* 9 (- a (/ 1.0 3.0))) |
34 calls. Slowest were:
| 603.0ms | (* (* (* (- a (/ 1.0 3.0)) (- a (/ 1.0 3.0))) (- a (/ 1.0 3.0))) (* (* (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand) (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand)) (* (pow (* 9 (- a (/ 1.0 3.0))) -1/2) rand))) |
| 290.0ms | (+ (* 0.041666666666666664 (/ (exp (* -1/2 (- (log 9) (log (/ 1 a))))) (pow a 2))) (+ (exp (* -1/2 (- (log 9) (log (/ 1 a))))) (* 0.16666666666666666 (/ (exp (* -1/2 (- (log 9) (log (/ 1 a))))) a)))) |
| 281.0ms | (- (* rand (sqrt -0.3333333333333333)) (+ (* 0.5 (/ (* a rand) (sqrt -0.3333333333333333))) (+ (* 0.125 (/ (* (pow a 2) rand) (pow (sqrt -0.3333333333333333) 3))) (* 1.5 (/ (* (pow a 2) rand) (sqrt -0.3333333333333333)))))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.4b | (pow (* 9 (- a (/ 1.0 3.0))) -1/2) |
| 0.3b | (* (* (- a (/ 1.0 3.0)) (pow (* 9 (- a (/ 1.0 3.0))) -1/2)) rand) |
| 0.3b | (* (- a (/ 1.0 3.0)) (pow (* 9 (- a (/ 1.0 3.0))) -1/2)) |
| 0.0b | (* 9 (- a (/ 1.0 3.0))) |
4 calls. Slowest were:
| 12.0ms | (* (* (- a (/ 1.0 3.0)) (pow (* 9 (- a (/ 1.0 3.0))) -1/2)) rand) |
| 6.0ms | (* (- a (/ 1.0 3.0)) (pow (* 9 (- a (/ 1.0 3.0))) -1/2)) |
| 3.0ms | (* 9 (- a (/ 1.0 3.0))) |
4 calls. Slowest were:
| 74.0ms | (pow (* 9 (- a (/ 1.0 3.0))) -1/2) |
| 59.0ms | (* (* (- a (/ 1.0 3.0)) (pow (* 9 (- a (/ 1.0 3.0))) -1/2)) rand) |
| 29.0ms | (* 9 (- a (/ 1.0 3.0))) |
| 25.0ms | (* (- a (/ 1.0 3.0)) (pow (* 9 (- a (/ 1.0 3.0))) -1/2)) |
39 calls. Slowest were:
| 462.0ms | (* (- (pow a 3) (pow (/ 1.0 3.0) 3)) (pow (* 9 (- a (/ 1.0 3.0))) -1/2)) |
| 375.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)))) |
| 322.0ms | (+ (* 0.041666666666666664 (/ (exp (* -1/2 (- (log 9) (log (/ 1 a))))) (pow a 2))) (+ (exp (* -1/2 (- (log 9) (log (/ 1 a))))) (* 0.16666666666666666 (/ (exp (* -1/2 (- (log 9) (log (/ 1 a))))) a)))) |
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