Details

Time bar (total: 3.6s)

sample34.0ms

Algorithm
intervals
Results
9.0ms193×body80valid
5.0ms18×body2560valid
4.0ms19×body1280valid
4.0ms12×body5120valid
2.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 37.4b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite22.0ms

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

series250.0ms

Counts
3 → 9
Calls
3 calls:
168.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify69.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0244351
1743325
22278315
35001312

prune135.0ms

Filtered
49 candidates to 42 candidates (85.7%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New43649
Fresh000
Picked101
Done000
Total44650

Merged error: 16.3b

Counts
50 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.1b
(+ (* (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:
15.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
14.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)))

series154.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
47.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify54.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
02671096
1974974
25001950

prune252.0ms

Filtered
136 candidates to 74 candidates (54.4%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1351136
Fresh145
Picked011
Done000
Total1366142

Merged error: 16.3b

Counts
142 → 6

localize22.0ms

Local error

Found 4 expressions with local error:

12.0b
(+ (* (* (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)))

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:
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)))

series157.0ms

Counts
4 → 12
Calls
4 calls:
49.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)
34.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify77.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 3 (69.0ms)

IterNodesCost
0172663
1540575
21978556
35002527

prune270.0ms

Filtered
68 candidates to 58 candidates (85.3%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New67168
Fresh044
Picked101
Done011
Total68674

Merged error: 16.3b

Counts
74 → 6

localize26.0ms

Local error

Found 4 expressions with local error:

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

rewrite19.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:
4.0ms
(sqrt (+ (* re re) (* im im)))
5.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series143.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify142.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (136.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune380.0ms

Filtered
72 candidates to 60 candidates (83.3%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New72072
Fresh044
Picked011
Done011
Total72678

Merged error: 16.3b

Counts
78 → 6

regimes178.0ms

Accuracy

54.6% (9.7b remaining)

Error of 27.3b against oracle of 17.6b and baseline of 38.9b

bsearch163.0ms

Steps
ItersRangePoint
7
2.8549477051182283e+107
7.434206941350193e+108
1.29266012334449e+108
9
-9.47172261769189e-283
-3.246740254987998e-288
-3.2757972150987433e-288
8
-3.544102532593128e+109
-2.0478157058041267e+105
-3.0784116266059505e+109
3
-1.5736961722652108e+153
-1.3123487377944479e+153
-1.3286829524488706e+153

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05334
15334

end0.0ms

sample938.0ms

Algorithm
intervals
Results
298.0ms6051×body80valid
203.0ms681×body2560valid
113.0ms486×body1280valid
95.0ms260×body5120valid
51.0ms278×body640valid
23.0ms159×body320valid
8.0ms85×body160valid