Details

Time bar (total: 3.6s)

sample36.0ms

Algorithm
intervals
Results
9.0ms194×body80valid
6.0ms22×body2560valid
6.0msbody5120valid
3.0ms13×body1280valid
2.0ms10×body640valid
1.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

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.9b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.2b
(- (sqrt (+ (* re re) (* im im))) re)
27.9b
(sqrt (+ (* re re) (* im im)))

rewrite23.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:
4.0ms
(+ (* re re) (* im im))
8.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)))

series342.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
232.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify106.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (100.0ms)

IterNodesCost
0260458
1982428
23667421
35001420

prune173.0ms

Filtered
66 candidates to 52 candidates (78.8%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New59766
Fresh000
Picked101
Done000
Total60767

Merged error: 17.1b

Counts
67 → 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)))))
7.0b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.9b
(sqrt (+ (* re re) (* im im)))
27.9b
(sqrt (+ (* re re) (* im im)))

rewrite44.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:
18.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:
36.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)
34.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify49.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02611112
1935975
25001951

prune257.0ms

Filtered
138 candidates to 73 candidates (52.9%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1353138
Fresh246
Picked011
Done000
Total1378145

Merged error: 17.1b

Counts
145 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

0.8b
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
12.4b
(- (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
27.9b
(sqrt (+ (* re re) (* im im)))
27.9b
(sqrt (+ (* re re) (* im im)))

rewrite34.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:
8.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
16.0ms
(- (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series235.0ms

Counts
4 → 12
Calls
4 calls:
110.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
50.0ms
(- (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
104 → 104
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0381993
11279875
25002845

prune294.0ms

Filtered
104 candidates to 64 candidates (61.5%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1013104
Fresh156
Picked101
Done011
Total1039112

Merged error: 17.1b

Counts
112 → 9

localize19.0ms

Local error

Found 4 expressions with local error:

4.7b
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
7.0b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.9b
(sqrt (+ (* re re) (* im im)))
27.9b
(sqrt (+ (* re re) (* im im)))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1
sqrt-prod add-log-exp
add-exp-log log-prod exp-prod sqrt-div exp-sum add-cbrt-cube
rem-sqrt-square log-div flip3-- sqrt-pow1 flip3-+ pow1/2 exp-diff flip-- flip-+ difference-of-squares
sub-neg diff-log log-pow rem-exp-log
Counts
4 → 61
Calls
4 calls:
16.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
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)))

series172.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
47.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify113.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 4 (105.0ms)

IterNodesCost
0191746
1442597
21109556
33525548
45002542

prune221.0ms

Filtered
73 candidates to 58 candidates (79.5%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New69473
Fresh167
Picked101
Done011
Total711182

Merged error: 17.1b

Counts
82 → 11

regimes231.0ms

Accuracy

56.9% (9.1b remaining)

Error of 26.8b against oracle of 17.7b and baseline of 38.8b

bsearch79.0ms

Steps
ItersRangePoint
8
-3.118349744238045e-230
-8.18437998310851e-233
-8.31798967334541e-233
6
-2.331637994940635e+74
-4.69191261873295e+73
-1.9404776396786571e+74

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03929
13929

end0.0ms

sample913.0ms

Algorithm
intervals
Results
301.0ms6071×body80valid
184.0ms671×body2560valid
108.0ms461×body1280valid
90.0ms273×body5120valid
54.0ms287×body640valid
22.0ms149×body320valid
8.0ms88×body160valid

Profiling

Loading profile data...