Details

Time bar (total: 3.6s)

analyze450.0ms

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
50%50%0.1%3
50%50%0.1%4
62.4%37.5%0.1%5
62.4%37.5%0.1%6
68.7%31.2%0.1%7
68.7%31.2%0.1%8
71.8%28.1%0.1%9
71.8%28.1%0.1%10
73.4%26.5%0.1%11
73.4%26.5%0.1%12
74.1%25.8%0.1%13
74.1%25.8%0.1%14

sample61.0ms

Algorithm
intervals
Results
18.0ms193×body80valid
14.0ms26×body2560valid
6.0ms14×body1280valid
4.0ms11×body640valid
3.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify10.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
02323
12323

prune6.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 35.8b

Counts
2 → 1

localize12.0ms

Local error

Found 3 expressions with local error:

0.2b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
26.0b
(sqrt (+ (* re re) (* im im)))

rewrite36.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:
15.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

series50.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (+ (* re re) (* im im)))

simplify95.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 0 (78.0ms)

IterNodesCost
04937842
14937842

prune119.0ms

Filtered
42 candidates to 49 candidates (-16.7%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New42749
Fresh000
Picked101
Done000
Total43750

Merged error: 16.3b

Counts
50 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
8.6b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
26.0b
(sqrt (+ (* re re) (* im im)))
26.0b
(sqrt (+ (* re re) (* im im)))

rewrite47.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:
16.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
15.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
5.0ms
(sqrt (+ (* re re) (* im im)))

series27.0ms

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

simplify97.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 0 (66.0ms)

IterNodesCost
049452259
149452259

prune191.0ms

Filtered
72 candidates to 136 candidates (-88.9%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1342136
Fresh156
Picked101
Done000
Total1367143

Merged error: 16.3b

Counts
143 → 7

localize17.0ms

Local error

Found 4 expressions with local error:

0.7b
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
11.8b
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
26.0b
(sqrt (+ (* re re) (* im im)))
26.0b
(sqrt (+ (* re re) (* im im)))

rewrite64.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
flip3-+ flip-+
pow-unpow
cube-div rem-sqrt-square
+-commutative cube-mult pow-to-exp unpow3 pow-exp sum-log sqrt-pow2 rem-cube-cbrt sqr-pow
Counts
4 → 91
Calls
4 calls:
17.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
33.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)))
5.0ms
(sqrt (+ (* re re) (* im im)))

series77.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
14.0ms
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
11.0ms
(sqrt (+ (* re re) (* im im)))
16.0ms
(sqrt (+ (* re re) (* im im)))

simplify84.0ms

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 0 (45.0ms)

IterNodesCost
051501971

prune202.0ms

Filtered
66 candidates to 103 candidates (-56.1%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1021103
Fresh156
Picked011
Done000
Total1037110

Merged error: 16.3b

Counts
110 → 7

localize18.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (sqrt (* (* im im) 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
1.4b
(- (sqrt (+ (* re re) (* im im))) re)
26.0b
(sqrt (+ (* re re) (* im im)))
27.6b
(sqrt (* (* im im) 2.0))

rewrite55.0ms

Algorithm
rewrite-expression-head
Rules
50×add-sqr-sqrt sqrt-prod
37×*-un-lft-identity
36×times-frac
25×add-cube-cbrt
12×difference-of-squares
11×pow1
associate-/r*
add-exp-log add-cbrt-cube distribute-lft-out-- add-log-exp
sqrt-pow1 sqrt-div associate-/l*
pow-prod-down
flip3-- pow1/2 associate-/r/ flip--
cbrt-undiv sub-neg rem-sqrt-square sqrt-undiv frac-2neg flip3-+ diff-log div-exp clear-num flip-+ div-inv
Counts
4 → 105
Calls
4 calls:
21.0ms
(/ (sqrt (* (* im im) 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
15.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (* (* im im) 2.0))

series56.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(/ (sqrt (* (* im im) 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
15.0ms
(- (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (* (* im im) 2.0))

simplify119.0ms

Algorithm
egg-herbie
Counts
117 → 117
Iterations

Useful iterations: 0 (85.0ms)

IterNodesCost
049243622
149243622

prune185.0ms

Filtered
84 candidates to 117 candidates (-39.3%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1134117
Fresh235
Picked101
Done101
Total1177124

Merged error: 8.3b

Counts
124 → 7

regimes306.0ms

Accuracy

51.6% (13.3b remaining)

Error of 22.8b against oracle of 9.5b and baseline of 36.9b

bsearch72.0ms

Steps
ItersRangePoint
6
1.0961874934018333e-169
8.281444214932008e-169
8.161050826261294e-169
10
-1.0713215690181764e+143
-3.4516972130472757e+130
-1.0515333860087074e+143

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05397
15397

end0.0ms

sample1.1s

Algorithm
intervals
Results
351.0ms6086×body80valid
238.0ms700×body2560valid
115.0ms429×body1280valid
111.0ms281×body5120valid
60.0ms257×body640valid
28.0ms167×body320valid
9.0ms80×body160valid

Profiling

Loading profile data...