Details

Time bar (total: 2.8s)

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

sample34.0ms

Algorithm
intervals
Results
10.0ms199×body80valid
6.0ms16×body1280valid
6.0ms20×body2560valid
2.0msbody640valid
1.0msbody5120valid
1.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: 37.2b

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.9b
(+ (sqrt (+ (* re re) (* im im))) re)
28.2b
(sqrt (+ (* re re) (* im im)))

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

series43.0ms

Counts
4 → 12
Calls
4 calls:
5.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)))

simplify29.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 0 (23.0ms)

IterNodesCost
05008690

prune130.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: 16.6b

Counts
64 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.4b
(pow (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0)) 3)
0.9b
(+ re (sqrt (+ (* re re) (* im im))))
15.6b
(cbrt (pow (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0)) 3))
28.2b
(sqrt (+ (* re re) (* im im)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
14×cbrt-prod
13×*-un-lft-identity
12×add-sqr-sqrt
11×add-cube-cbrt
pow1
unpow-prod-down cube-prod
sqrt-prod
sqrt-div add-log-exp
add-exp-log add-cbrt-cube
cube-div pow-pow flip3-+ associate-*l/ flip-+
pow-unpow sqrt-pow1
cube-mult cbrt-div pow1/2 unpow3 sqr-pow
+-commutative pow-to-exp rem-sqrt-square pow1/3 pow-prod-down pow-exp sum-log sqrt-pow2 rem-cbrt-cube distribute-lft-out rem-cube-cbrt
Counts
4 → 83
Calls
4 calls:
8.0ms
(pow (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0)) 3)
6.0ms
(+ re (sqrt (+ (* re re) (* im im))))
4.0ms
(cbrt (pow (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0)) 3))
4.0ms
(sqrt (+ (* re re) (* im im)))

series101.0ms

Counts
4 → 12
Calls
4 calls:
63.0ms
(pow (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0)) 3)
7.0ms
(+ re (sqrt (+ (* re re) (* im im))))
25.0ms
(cbrt (pow (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0)) 3))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
95 → 95
Iterations

Useful iterations: 0 (42.0ms)

IterNodesCost
049571400
149571400

prune140.0ms

Filtered
62 candidates to 95 candidates (-53.2%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New94195
Fresh066
Picked011
Done000
Total948102

Merged error: 16.6b

Counts
102 → 8

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.0b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
28.2b
(sqrt (+ (* re re) (* im im)))
28.2b
(sqrt (+ (* re re) (* im im)))

rewrite46.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:
17.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)
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)))

simplify70.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 0 (58.0ms)

IterNodesCost
049441470
149441470

prune143.0ms

Filtered
73 candidates to 136 candidates (-86.3%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1351136
Fresh156
Picked011
Done011
Total1368144

Merged error: 16.6b

Counts
144 → 8

localize19.0ms

Local error

Found 4 expressions with local error:

0.9b
(+ re (sqrt (+ (* re re) (* im im))))
2.9b
(exp (* 3 (log (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0)))))
15.6b
(cbrt (exp (* 3 (log (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0))))))
28.2b
(sqrt (+ (* re re) (* im im)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
16×log-prod exp-sum
12×*-un-lft-identity
11×cbrt-prod add-sqr-sqrt
10×add-cube-cbrt
distribute-rgt-in distribute-lft-in add-log-exp
sqrt-prod
pow1
add-exp-log add-cbrt-cube
flip3-+ sqrt-div flip-+
+-commutative rem-sqrt-square exp-prod exp-to-pow sqrt-pow1 pow1/2 pow1/3 sum-log rem-exp-log distribute-lft-out
Counts
4 → 64
Calls
4 calls:
6.0ms
(+ re (sqrt (+ (* re re) (* im im))))
3.0ms
(exp (* 3 (log (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0)))))
4.0ms
(cbrt (exp (* 3 (log (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0))))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series100.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(+ re (sqrt (+ (* re re) (* im im))))
64.0ms
(exp (* 3 (log (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0)))))
23.0ms
(cbrt (exp (* 3 (log (sqrt (* (+ re (sqrt (+ (* re re) (* im im)))) 2.0))))))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify38.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 0 (30.0ms)

IterNodesCost
049701063
149701063

prune108.0ms

Filtered
52 candidates to 76 candidates (-46.2%)
Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New76076
Fresh055
Picked011
Done022
Total76884

Merged error: 16.6b

Counts
84 → 8

regimes257.0ms

Accuracy

41.8% (12.5b remaining)

Error of 29.3b against oracle of 16.8b and baseline of 38.3b

bsearch83.0ms

Steps
ItersRangePoint
10
3.998855284750248e+63
6.121078258950455e+74
6.76894866017109e+68
9
1.7755267273505142e-156
1.171250964795389e-149
2.1109892546767475e-156
8
-3.0771878019732518e-201
-7.920789041027829e-206
-2.8332709859495543e-201

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05874
15874

end0.0ms

sample935.0ms

Algorithm
intervals
Results
297.0ms6055×body80valid
203.0ms721×body2560valid
112.0ms477×body1280valid
93.0ms264×body5120valid
55.0ms277×body640valid
18.0ms130×body320valid
7.0ms76×body160valid

Profiling

Loading profile data...