Details

Time bar (total: 3.4s)

analyze342.0ms

Algorithm
search

sample34.0ms

Algorithm
intervals
Results
10.0ms204×body80valid
5.0msbody640valid
4.0ms15×body1280valid
4.0ms12×body2560valid
2.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify5.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.8b

Counts
2 → 1

localize11.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.2b
(+ (sqrt (+ (* re re) (* im im))) re)
32.5b
(sqrt (+ (* re re) (* im im)))

rewrite22.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:
4.0ms
(+ (* re re) (* im im))
7.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series42.0ms

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

simplify94.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (88.0ms)

IterNodesCost
0277428
11024399
23458393
35002391

prune129.0ms

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

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New56763
Fresh000
Picked101
Done000
Total57764

Merged error: 17.6b

Counts
64 → 7

localize16.0ms

Local error

Found 4 expressions with local error:

1.2b
(+ (sqrt (+ (* re re) (* im im))) re)
32.5b
(sqrt (+ (* re re) (* im im)))
32.5b
(sqrt (+ (* re re) (* im im)))
32.5b
(sqrt (+ (* re re) (* im im)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
*-un-lft-identity sqrt-prod
pow1 add-cube-cbrt
sqrt-div add-log-exp
add-exp-log flip3-+ add-cbrt-cube flip-+
rem-sqrt-square sqrt-pow1 pow1/2
+-commutative sum-log distribute-lft-out
Counts
4 → 57
Calls
4 calls:
7.0ms
(+ (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:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

simplify84.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (28.0ms)

IterNodesCost
0141392
1358380
2866376
32557375
45001375

prune115.0ms

Filtered
61 candidates to 69 candidates (-13.1%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New69069
Fresh066
Picked011
Done000
Total69776

Merged error: 17.6b

Counts
76 → 7

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.4b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
32.5b
(sqrt (+ (* re re) (* im im)))
32.5b
(sqrt (+ (* re re) (* im im)))

rewrite41.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)))

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

simplify52.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02671096
1974974
25001950

prune130.0ms

Filtered
74 candidates to 136 candidates (-83.8%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1351136
Fresh145
Picked011
Done011
Total1367143

Merged error: 17.6b

Counts
143 → 7

localize19.0ms

Local error

Found 4 expressions with local error:

5.8b
(exp (log (sqrt (+ (* re re) (* im im)))))
12.5b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))) re)
32.5b
(sqrt (+ (* re re) (* im im)))
32.5b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

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

simplify121.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 4 (111.0ms)

IterNodesCost
0208622
1485555
21193507
33624495
45003493

prune111.0ms

Filtered
62 candidates to 75 candidates (-21.0%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New73275
Fresh044
Picked101
Done022
Total74882

Merged error: 17.6b

Counts
82 → 8

regimes444.0ms

Accuracy

50.2% (10.6b remaining)

Error of 28.9b against oracle of 18.3b and baseline of 39.5b

bsearch156.0ms

Steps
ItersRangePoint
9
4.367983800832522e+59
3.6374539111637025e+64
1.1877173283244378e+62
10
-1.367212076401319e-299
4.630985363417236e-301
-2.1177384497007792e-304
3
-1.60603650358745e-258
-1.3138586487999243e-258
-1.3686419965725857e-258
5
-3.168101490300806e-185
-1.440446405010367e-185
-2.2067693612502508e-185
9
-1.1839139323395968e-37
-3.2321373794750325e-43
-3.2644670453862826e-43

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05547
15547

end0.0ms

analyze338.0ms

Algorithm
search

sample974.0ms

Algorithm
intervals
Results
300.0ms5975×body80valid
223.0ms730×body2560valid
119.0ms494×body1280valid
104.0ms281×body5120valid
56.0ms299×body640valid
20.0ms145×body320valid
7.0ms76×body160valid

Profiling

Loading profile data...