Details

Time bar (total: 3.5s)

sample30.0ms

Algorithm
intervals
Results
6.0ms183×body80valid
5.0ms18×body1280valid
4.0ms21×body2560valid
2.0msbody5120valid
2.0ms15×body640valid
0.0msbody160valid
0.0msbody320valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.8b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.5b
(- (sqrt (+ (* re re) (* im im))) re)
30.2b
(sqrt (+ (* re re) (* im im)))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
pow1 add-log-exp
*-un-lft-identity
add-cube-cbrt sqrt-prod
add-exp-log sqrt-div add-cbrt-cube
sqrt-pow1
flip3-- flip3-+ pow1/2 associate-*r/ flip-- flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square diff-log pow-prod-down sum-log distribute-lft-out--
Counts
4 → 54
Calls
4 calls:
2.0ms
(+ (* re re) (* im im))
11.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series282.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(+ (* re re) (* im im))
169.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify93.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (87.0ms)

IterNodesCost
0258459
1938422
23098412
35001410

prune186.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 18.2b

localize13.0ms

Local error

Found 4 expressions with local error:

1.5b
(- (sqrt (+ (* re re) (* im im))) re)
1.5b
(- (sqrt (+ (* re re) (* im im))) re)
30.2b
(sqrt (+ (* re re) (* im im)))
30.2b
(sqrt (+ (* re re) (* im im)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×*-un-lft-identity
sqrt-prod add-log-exp
pow1 add-cube-cbrt
add-exp-log sqrt-div add-cbrt-cube difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ distribute-lft-out--
Counts
4 → 60
Calls
4 calls:
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
19.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (+ (* re re) (* im im)))

series163.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify82.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 4 (76.0ms)

IterNodesCost
0135456
1332432
2839424
32503422
45002420

prune253.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 18.2b

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
10.0b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
30.2b
(sqrt (+ (* re re) (* im im)))
30.2b
(sqrt (+ (* re re) (* im im)))

rewrite55.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
51×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
associate-*r* associate-*l* pow-prod-up unswap-sqr
flip3-+ flip-+
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
pow2 sub-neg flip3-- pow-plus sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative flip-- cbrt-unprod difference-of-squares
Counts
4 → 126
Calls
4 calls:
24.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
18.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series155.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
45.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify46.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02611112
1935975
25001951

prune290.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 18.2b

localize16.0ms

Local error

Found 4 expressions with local error:

0.7b
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
12.2b
(- (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
30.2b
(sqrt (+ (* re re) (* im im)))
30.2b
(sqrt (+ (* re re) (* im im)))

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
42×sqrt-prod
17×add-sqr-sqrt
15×add-cube-cbrt *-un-lft-identity
12×unpow-prod-down cube-prod
11×sqrt-pow1
10×pow1 sqrt-div
pow-pow
add-log-exp
add-exp-log pow1/2 add-cbrt-cube
pow-unpow flip3-+ flip-+
cube-div rem-sqrt-square
cube-mult pow-to-exp sub-neg flip3-- diff-log unpow3 pow-exp sqrt-pow2 flip-- rem-cube-cbrt sqr-pow
Counts
4 → 92
Calls
4 calls:
9.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
20.0ms
(- (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series228.0ms

Counts
4 → 12
Calls
4 calls:
108.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
51.0ms
(- (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
104 → 104
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0381993
11279875
25002845

prune303.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 18.2b

regimes378.0ms

Accuracy

60.3% (8.4b remaining)

Error of 26.5b against oracle of 18.1b and baseline of 39.2b

bsearch3.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05359
15759
25759

end0.0ms

sample677.0ms

Algorithm
intervals
Results
203.0ms6029×body80valid
138.0ms701×body2560valid
73.0ms471×body1280valid
71.0ms290×body5120valid
33.0ms268×body640valid
20.0ms158×body320valid
5.0ms83×body160valid