Details

Time bar (total: 2.1m)

sample73.0ms

Algorithm
intervals
Results
32.0ms878×body80nan
12.0ms296×body80valid

simplify95.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02710
17210
219210
343710
481610
5157810
6276410
7500210

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.1b

localize10.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (- a (/ 1.0 3.0)) (+ 1.0 (* (/ 1.0 (sqrt (* 9.0 (- a (/ 1.0 3.0))))) rand)))
0.1b
(sqrt (* 9.0 (- a (/ 1.0 3.0))))
0.2b
(* (/ 1.0 (sqrt (* 9.0 (- a (/ 1.0 3.0))))) rand)
0.2b
(/ 1.0 (sqrt (* 9.0 (- a (/ 1.0 3.0)))))

rewrite145.0ms

Algorithm
rewrite-expression-head
Rules
36×add-sqr-sqrt
26×*-un-lft-identity times-frac
24×add-cube-cbrt associate-*l*
13×add-exp-log add-cbrt-cube
11×pow1
associate-*r/ sqrt-prod
flip3-- sqrt-div associate-*r* flip--
frac-times associate-/r* associate-/r/ add-log-exp
flip3-+ pow-prod-down associate-*l/ prod-exp cbrt-unprod flip-+ associate-/l* unswap-sqr
cbrt-undiv sqrt-pow1 div-exp *-commutative div-inv difference-of-squares
distribute-rgt-in frac-2neg distribute-lft-in pow1/2 clear-num distribute-lft-out--
Counts
4 → 114
Calls
4 calls:
49.0ms
(* (- a (/ 1.0 3.0)) (+ 1.0 (* (/ 1.0 (sqrt (* 9.0 (- a (/ 1.0 3.0))))) rand)))
12.0ms
(sqrt (* 9.0 (- a (/ 1.0 3.0))))
62.0ms
(* (/ 1.0 (sqrt (* 9.0 (- a (/ 1.0 3.0))))) rand)
18.0ms
(/ 1.0 (sqrt (* 9.0 (- a (/ 1.0 3.0)))))

series495.0ms

Counts
4 → 12
Calls
4 calls:
114.0ms
(* (- a (/ 1.0 3.0)) (+ 1.0 (* (/ 1.0 (sqrt (* 9.0 (- a (/ 1.0 3.0))))) rand)))
70.0ms
(sqrt (* 9.0 (- a (/ 1.0 3.0))))
172.0ms
(* (/ 1.0 (sqrt (* 9.0 (- a (/ 1.0 3.0))))) rand)
138.0ms
(/ 1.0 (sqrt (* 9.0 (- a (/ 1.0 3.0)))))

simplify89.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 1 (18.0ms)

IterNodesCost
08231338
136071238
250021238

prune539.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (- a (/ 1.0 3.0)))
0.1b
(* (- a (/ 1.0 3.0)) (+ 1.0 (* (/ (/ 1.0 (sqrt 9.0)) (sqrt (- a (/ 1.0 3.0)))) rand)))
0.2b
(* (/ (/ 1.0 (sqrt 9.0)) (sqrt (- a (/ 1.0 3.0)))) rand)
0.4b
(/ (/ 1.0 (sqrt 9.0)) (sqrt (- a (/ 1.0 3.0))))

rewrite436.0ms

Algorithm
rewrite-expression-head
Rules
795×times-frac
608×add-sqr-sqrt
452×sqrt-prod
440×*-un-lft-identity
346×add-cube-cbrt
210×associate-*l*
94×difference-of-squares
47×distribute-lft-out--
22×associate-/l*
21×div-inv
20×add-exp-log add-cbrt-cube
pow1 associate-/r*
unswap-sqr
cbrt-undiv flip3-- sqrt-div div-exp associate-*r* flip--
frac-times prod-exp associate-/r/ cbrt-unprod add-log-exp
flip3-+ associate-*l/ flip-+
associate-*r/ pow-prod-down *-commutative
distribute-rgt-in rem-sqrt-square frac-2neg distribute-lft-in sqrt-pow1 pow1/2 clear-num associate-/l/
Counts
4 → 525
Calls
4 calls:
15.0ms
(sqrt (- a (/ 1.0 3.0)))
50.0ms
(* (- a (/ 1.0 3.0)) (+ 1.0 (* (/ (/ 1.0 (sqrt 9.0)) (sqrt (- a (/ 1.0 3.0)))) rand)))
292.0ms
(* (/ (/ 1.0 (sqrt 9.0)) (sqrt (- a (/ 1.0 3.0)))) rand)
33.0ms
(/ (/ 1.0 (sqrt 9.0)) (sqrt (- a (/ 1.0 3.0))))

series565.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(sqrt (- a (/ 1.0 3.0)))
149.0ms
(* (- a (/ 1.0 3.0)) (+ 1.0 (* (/ (/ 1.0 (sqrt 9.0)) (sqrt (- a (/ 1.0 3.0)))) rand)))
206.0ms
(* (/ (/ 1.0 (sqrt 9.0)) (sqrt (- a (/ 1.0 3.0)))) rand)
175.0ms
(/ (/ 1.0 (sqrt 9.0)) (sqrt (- a (/ 1.0 3.0))))

simplify97.0ms

Algorithm
egg-herbie
Counts
537 → 537
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
016726724
150016456

prune1.9s

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0b

localize18.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (* (/ 1 (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0))))) (/ (/ 1.0 (sqrt 9.0)) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0)))))) rand)
0.3b
(/ 1 (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0)))))
0.3b
(* (/ 1 (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0))))) (/ (/ 1.0 (sqrt 9.0)) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0))))))
0.4b
(/ (/ 1.0 (sqrt 9.0)) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0)))))

rewrite965.0ms

Algorithm
rewrite-expression-head
Rules
1354×times-frac
1269×add-sqr-sqrt
1249×sqrt-prod
727×*-un-lft-identity
505×add-cube-cbrt
317×associate-*r*
270×difference-of-squares
105×add-exp-log
90×distribute-lft-out--
61×add-cbrt-cube
41×div-exp
37×prod-exp
35×unswap-sqr
33×div-inv
31×associate-*l*
25×associate-/l*
22×cbrt-undiv associate-/r*
19×cbrt-unprod
14×distribute-lft-out
13×pow1
sqrt-div associate-/r/
rec-exp 1-exp
associate-*l/
pow-prod-down add-log-exp
pow-flip
frac-times flip3-- frac-2neg flip3-+ associate-*r/ clear-num *-commutative flip-- flip-+
sqrt-pow1 pow1/2 associate-/l/ inv-pow
Counts
4 → 862
Calls
4 calls:
419.0ms
(* (* (/ 1 (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0))))) (/ (/ 1.0 (sqrt 9.0)) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0)))))) rand)
32.0ms
(/ 1 (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0)))))
308.0ms
(* (/ 1 (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0))))) (/ (/ 1.0 (sqrt 9.0)) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0))))))
50.0ms
(/ (/ 1.0 (sqrt 9.0)) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0)))))

series51.9s

Counts
4 → 12
Calls
4 calls:
47.3s
(* (* (/ 1 (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0))))) (/ (/ 1.0 (sqrt 9.0)) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0)))))) rand)
281.0ms
(/ 1 (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0)))))
3.5s
(* (/ 1 (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0))))) (/ (/ 1.0 (sqrt 9.0)) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0))))))
849.0ms
(/ (/ 1.0 (sqrt 9.0)) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0)))))

simplify224.0ms

Algorithm
egg-herbie
Counts
874 → 874
Iterations

Useful iterations: 1 (58.0ms)

IterNodesCost
0347419525
1500218699

prune2.9s

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 0b

localize29.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (/ (/ (sqrt 1.0) (cbrt (sqrt 9.0))) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0))))) rand)
0.3b
(* (/ (/ (sqrt 1.0) (* (cbrt (sqrt 9.0)) (cbrt (sqrt 9.0)))) (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0))))) (* (/ (/ (sqrt 1.0) (cbrt (sqrt 9.0))) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0))))) rand))
0.4b
(/ (/ (sqrt 1.0) (cbrt (sqrt 9.0))) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0)))))
1.0b
(/ (sqrt 1.0) (cbrt (sqrt 9.0)))

rewrite997.0ms

Algorithm
rewrite-expression-head
Rules
3807×sqrt-prod
3632×times-frac
3093×add-sqr-sqrt
1907×*-un-lft-identity
1399×add-cube-cbrt
1094×cbrt-prod
904×associate-*l*
702×difference-of-squares
234×distribute-lft-out--
100×add-exp-log
85×add-cbrt-cube
64×associate-/l*
41×div-inv
39×cbrt-undiv div-exp
35×prod-exp cbrt-unprod
23×associate-/r*
20×distribute-lft-out
15×unswap-sqr
11×pow1
sqrt-div associate-/r/
associate-*r* pow-prod-down associate-*l/ add-log-exp
flip3-- frac-2neg clear-num *-commutative flip--
frac-times flip3-+ associate-*r/ flip-+ associate-/l/
Counts
4 → 1966
Calls
4 calls:
315.0ms
(* (/ (/ (sqrt 1.0) (cbrt (sqrt 9.0))) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0))))) rand)
352.0ms
(* (/ (/ (sqrt 1.0) (* (cbrt (sqrt 9.0)) (cbrt (sqrt 9.0)))) (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0))))) (* (/ (/ (sqrt 1.0) (cbrt (sqrt 9.0))) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0))))) rand))
67.0ms
(/ (/ (sqrt 1.0) (cbrt (sqrt 9.0))) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0)))))
9.0ms
(/ (sqrt 1.0) (cbrt (sqrt 9.0)))

series56.3s

Counts
4 → 10
Calls
4 calls:
4.0s
(* (/ (/ (sqrt 1.0) (cbrt (sqrt 9.0))) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0))))) rand)
51.3s
(* (/ (/ (sqrt 1.0) (* (cbrt (sqrt 9.0)) (cbrt (sqrt 9.0)))) (sqrt (+ (sqrt a) (sqrt (/ 1.0 3.0))))) (* (/ (/ (sqrt 1.0) (cbrt (sqrt 9.0))) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0))))) rand))
989.0ms
(/ (/ (sqrt 1.0) (cbrt (sqrt 9.0))) (sqrt (- (sqrt a) (sqrt (/ 1.0 3.0)))))
0.0ms
(/ (sqrt 1.0) (cbrt (sqrt 9.0)))

simplify412.0ms

Algorithm
egg-herbie
Counts
1976 → 1976
Iterations

Useful iterations: 1 (65.0ms)

IterNodesCost
0399541211
1500240020

prune8.2s

Pruning

7 alts after pruning (4 fresh and 3 done)

Merged error: 0b

regimes143.0ms

Accuracy

0% (0.1b remaining)

Error of 0.2b against oracle of 0.0b and baseline of 0.2b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01711
11711

end0.0ms

sample2.0s

Algorithm
intervals
Results
1.0s27420×body80nan
374.0ms9180×body80valid