Details

Time bar (total: 2.7s)

analyze330.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

sample29.0ms

Algorithm
intervals
Results
10.0ms213×body80valid
4.0ms14×body2560valid
3.0ms13×body1280valid
2.0msbody5120valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
02215
12215

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: 33.5b

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)))
0.2b
(+ (sqrt (+ (* re re) (* im im))) re)
26.8b
(sqrt (+ (* re re) (* im im)))

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

series44.0ms

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

simplify32.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 0 (25.0ms)

IterNodesCost
05008690

prune122.0ms

Filtered
53 candidates to 63 candidates (-18.9%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New56763
Fresh000
Picked101
Done000
Total57764

Merged error: 13.8b

Counts
64 → 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)))))
5.1b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
26.8b
(sqrt (+ (* re re) (* im im)))
26.8b
(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)))))
18.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)))

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

simplify74.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 0 (62.0ms)

IterNodesCost
049441470
149441470

prune138.0ms

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

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1360136
Fresh066
Picked011
Done000
Total1367143

Merged error: 13.8b

Counts
143 → 7

localize12.0ms

Local error

Found 4 expressions with local error:

0.6b
(- (sqrt (+ (* re re) (* im im))) re)
3.8b
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
23.8b
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
26.8b
(sqrt (+ (* re re) (* im im)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
13×*-un-lft-identity
add-exp-log add-cbrt-cube
pow1
add-cube-cbrt sqrt-prod
times-frac associate-/r* add-log-exp difference-of-squares
sqrt-pow1 sqrt-div distribute-lft-out--
cbrt-undiv flip3-- pow1/2 div-exp associate-/r/ flip--
sub-neg rem-sqrt-square frac-2neg flip3-+ diff-log associate-*r/ pow-prod-down prod-exp clear-num cbrt-unprod flip-+ div-inv associate-/l*
Counts
4 → 70
Calls
4 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
11.0ms
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
5.0ms
(sqrt (+ (* re re) (* im im)))

series51.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(- (sqrt (+ (* re re) (* im im))) re)
23.0ms
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
12.0ms
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify60.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 0 (52.0ms)

IterNodesCost
049471144
149471144

prune131.0ms

Filtered
64 candidates to 82 candidates (-28.1%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New76682
Fresh325
Picked101
Done101
Total81889

Merged error: 12.3b

Counts
89 → 8

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))
0.6b
(- (sqrt (+ (* re re) (* im im))) re)
3.8b
(sqrt (* 2.0 (* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))))
26.8b
(sqrt (+ (* re re) (* im im)))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
38×add-sqr-sqrt
24×*-un-lft-identity associate-*r*
19×times-frac
16×add-cube-cbrt
13×pow1
add-exp-log add-cbrt-cube
sqrt-prod difference-of-squares
add-log-exp
sqrt-pow1 pow-prod-down distribute-lft-out--
sqrt-div associate-*r/ associate-*l*
flip3-- pow1/2 prod-exp associate-/r/ flip-- cbrt-unprod unswap-sqr
cbrt-undiv sub-neg rem-sqrt-square flip3-+ diff-log div-exp *-commutative flip-+ div-inv
Counts
4 → 85
Calls
4 calls:
15.0ms
(* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))
8.0ms
(- (sqrt (+ (* re re) (* im im))) re)
12.0ms
(sqrt (* 2.0 (* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series52.0ms

Counts
4 → 12
Calls
4 calls:
12.0ms
(* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
24.0ms
(sqrt (* 2.0 (* im (/ im (- (sqrt (+ (* re re) (* im im))) re)))))
9.0ms
(sqrt (+ (* re re) (* im im)))

simplify60.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 0 (51.0ms)

IterNodesCost
049191281
149191281

prune106.0ms

Filtered
69 candidates to 97 candidates (-40.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New96197
Fresh167
Picked011
Done000
Total978105

Merged error: 11.7b

Counts
105 → 8

regimes243.0ms

Accuracy

33.9% (18.3b remaining)

Error of 31.0b against oracle of 12.8b and baseline of 40.4b

bsearch59.0ms

Steps
ItersRangePoint
0
1.0380434919050938e-26
1.0615436355507401e-26
1.049793563727917e-26
6
6.879610921486782e-101
4.747545620305833e-100
1.4225952660417887e-100
6
1.5504740844715768e-181
1.3715114345915616e-180
9.700144651592025e-181
6
-1.2965913153833709e-149
-2.2510289479756733e-150
-2.4849948128403756e-150

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05378
15378

end0.0ms

sample936.0ms

Algorithm
intervals
Results
300.0ms6030×body80valid
193.0ms677×body2560valid
119.0ms521×body1280valid
100.0ms290×body5120valid
48.0ms266×body640valid
22.0ms147×body320valid
6.0ms69×body160valid

Profiling

Loading profile data...