Details

Time bar (total: 3.8s)

sample26.0ms

Algorithm
intervals
Results
6.0ms199×body80valid
3.0ms18×body2560valid
3.0ms19×body1280valid
1.0msbody5120valid
1.0ms10×body640valid
0.0msbody320valid
0.0msbody160valid

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: 39.6b

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)))
0.3b
(- (sqrt (+ (* re re) (* im im))) re)
31.6b
(sqrt (+ (* re re) (* im im)))

rewrite87.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:
8.0ms
(+ (* re re) (* im im))
27.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
43.0ms
(- (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series296.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(+ (* re re) (* im im))
176.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
42.0ms
(sqrt (+ (* re re) (* im im)))

simplify94.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (85.0ms)

IterNodesCost
0258459
1938422
23098412
35001410

prune187.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 19.8b

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
7.1b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
31.6b
(sqrt (+ (* re re) (* im im)))
31.6b
(sqrt (+ (* re re) (* im im)))

rewrite117.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:
55.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
41.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series169.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
49.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify43.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
02611112
1935975
25001951

prune296.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 19.8b

localize18.0ms

Local error

Found 4 expressions with local error:

6.9b
(- (* (* (fabs (cbrt (sqrt (+ (* re re) (* im im))))) (sqrt (sqrt (+ (* re re) (* im im))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) re)
31.6b
(sqrt (+ (* re re) (* im im)))
31.6b
(sqrt (+ (* re re) (* im im)))
31.6b
(sqrt (+ (* re re) (* im im)))

rewrite101.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div add-log-exp
add-exp-log add-cbrt-cube
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sub-neg flip3-- diff-log flip--
Counts
4 → 57
Calls
4 calls:
74.0ms
(- (* (* (fabs (cbrt (sqrt (+ (* re re) (* im im))))) (sqrt (sqrt (+ (* re re) (* im im))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series215.0ms

Counts
4 → 12
Calls
4 calls:
98.0ms
(- (* (* (fabs (cbrt (sqrt (+ (* re re) (* im im))))) (sqrt (sqrt (+ (* re re) (* im im))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify83.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (76.0ms)

IterNodesCost
0211717
1760652
22681633
35001618

prune305.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 19.8b

localize28.0ms

Local error

Found 4 expressions with local error:

31.6b
(sqrt (+ (* re re) (* im im)))
31.6b
(sqrt (+ (* re re) (* im im)))
31.6b
(sqrt (+ (* re re) (* im im)))
31.6b
(sqrt (+ (* re re) (* im im)))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity sqrt-div
add-exp-log rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 60
Calls
4 calls:
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series160.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))
42.0ms
(sqrt (+ (* re re) (* im im)))

simplify138.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (132.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune381.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 19.8b

regimes229.0ms

Accuracy

44.6% (11.8b remaining)

Error of 29.5b against oracle of 17.6b and baseline of 39.0b

bsearch2.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03725
13725

end0.0ms

sample713.0ms

Algorithm
intervals
Results
204.0ms6064×body80valid
124.0ms674×body2560valid
73.0ms486×body1280valid
70.0ms286×body5120valid
35.0ms273×body640valid
12.0ms139×body320valid
5.0ms78×body160valid