Details

Time bar (total: 2.8s)

sample35.0ms

Algorithm
intervals
Results
9.0ms187×body80valid
8.0ms29×body2560valid
4.0ms18×body1280valid
2.0msbody5120valid
2.0ms11×body640valid
1.0msbody320valid
0.0msbody160valid

simplify4.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 39.2b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(+ (sqrt (+ (* re re) (* im im))) re)
0.5b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-log-exp
*-un-lft-identity
add-sqr-sqrt
add-cube-cbrt
add-exp-log flip3-+ sqrt-div sqrt-prod add-cbrt-cube flip-+
sqrt-pow1
+-commutative pow1/2 associate-*r/ sum-log
rem-sqrt-square pow-prod-down distribute-lft-out
Counts
4 → 51
Calls
4 calls:
7.0ms
(+ (* re re) (* im im))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
3.0ms
(sqrt (+ (* re re) (* im im)))

series40.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(+ (* re re) (* im im))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
23.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify89.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (84.0ms)

IterNodesCost
0277428
11024399
23458393
35002391

prune113.0ms

Filtered
52 candidates to 63 candidates (-21.2%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New57663
Fresh000
Picked011
Done000
Total57764

Merged error: 19.7b

Counts
64 → 7

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.5b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
28.5b
(sqrt (+ (* re re) (* im im)))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
17.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
13.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series25.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
7.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify46.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02671096
1974974
25001950

prune133.0ms

Filtered
73 candidates to 136 candidates (-86.3%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1333136
Fresh055
Picked101
Done011
Total1349143

Merged error: 19.7b

Counts
143 → 9

localize20.0ms

Local error

Found 4 expressions with local error:

13.6b
(+ (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (* (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (sqrt (+ (* re re) (* im im))))))) re)
28.5b
(sqrt (+ (* re re) (* im im)))
28.5b
(sqrt (+ (* re re) (* im im)))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite34.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 flip3-+ add-cbrt-cube flip-+
rem-sqrt-square sqrt-pow1 pow1/2
+-commutative sum-log
Counts
4 → 56
Calls
4 calls:
22.0ms
(+ (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (* (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (sqrt (+ (* re re) (* im im))))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series25.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(+ (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (* (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (sqrt (+ (* re re) (* im im))))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify69.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 3 (61.0ms)

IterNodesCost
0170713
1540616
22170587
35002584

prune133.0ms

Filtered
58 candidates to 68 candidates (-17.2%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New67168
Fresh167
Picked011
Done011
Total68977

Merged error: 19.7b

Counts
77 → 9

localize24.0ms

Local error

Found 4 expressions with local error:

15.3b
(+ (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (* (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))))) re)
28.5b
(sqrt (+ (* re re) (* im im)))
28.5b
(sqrt (+ (* re re) (* im im)))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite35.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 flip3-+ add-cbrt-cube flip-+
rem-sqrt-square sqrt-pow1 pow1/2
+-commutative sum-log
Counts
4 → 56
Calls
4 calls:
23.0ms
(+ (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (* (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series28.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(+ (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (* (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify69.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 3 (62.0ms)

IterNodesCost
0174749
1554638
22189607
35001604

prune120.0ms

Filtered
58 candidates to 68 candidates (-17.2%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New68068
Fresh066
Picked011
Done022
Total68977

Merged error: 19.7b

Counts
77 → 9

regimes698.0ms

Accuracy

54.1% (9.6b remaining)

Error of 27.6b against oracle of 18.0b and baseline of 39.0b

bsearch1.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03836
13836

end0.0ms

sample966.0ms

Algorithm
intervals
Results
277.0ms6030×body80valid
202.0ms700×body2560valid
114.0ms488×body1280valid
91.0ms280×body5120valid
49.0ms278×body640valid
20.0ms149×body320valid
7.0ms75×body160valid

Profiling

Loading profile data...