Details

Time bar (total: 3.2s)

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

sample33.0ms

Algorithm
intervals
Results
9.0ms197×body80valid
7.0ms15×body2560valid
3.0ms16×body1280valid
3.0msbody5120valid
2.0ms11×body640valid
1.0msbody320valid
0.0msbody160valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.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: 38.9b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.3b
(+ (sqrt (+ (* re re) (* im im))) re)
29.7b
(sqrt (+ (* re re) (* im im)))

rewrite18.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:
8.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)))

series36.0ms

Counts
3 → 9
Calls
3 calls:
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)))

simplify31.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 0 (26.0ms)

IterNodesCost
04949551
14949551

prune104.0ms

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

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New41849
Fresh000
Picked101
Done000
Total42850

Merged error: 16.8b

Counts
50 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
6.0b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
30.8b
(cbrt (+ (* re re) (* im im)))
30.8b
(cbrt (+ (* re re) (* im im)))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×cbrt-prod add-cube-cbrt *-un-lft-identity
associate-*r*
sqrt-prod
pow1 add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ flip-+
associate-*l* unswap-sqr
pow1/3 sqrt-div associate-*r/
+-commutative pow-prod-down prod-exp sum-log *-commutative cbrt-unprod
Counts
4 → 65
Calls
4 calls:
8.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
8.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series105.0ms

Counts
4 → 12
Calls
4 calls:
32.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
31.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
20.0ms
(cbrt (+ (* re re) (* im im)))
21.0ms
(cbrt (+ (* re re) (* im im)))

simplify49.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 0 (39.0ms)

IterNodesCost
052351420

prune144.0ms

Filtered
65 candidates to 77 candidates (-18.5%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New74377
Fresh077
Picked101
Done000
Total751085

Merged error: 16.8b

Counts
85 → 10

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
7.7b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.7b
(sqrt (+ (* re re) (* im im)))
29.7b
(sqrt (+ (* re re) (* im im)))

rewrite40.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:
14.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
13.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)))

simplify64.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 0 (49.0ms)

IterNodesCost
049981467
149981467

prune141.0ms

Filtered
71 candidates to 136 candidates (-91.5%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New1360136
Fresh099
Picked011
Done000
Total13610146

Merged error: 16.8b

Counts
146 → 10

localize17.0ms

Local error

Found 4 expressions with local error:

5.1b
(exp (log (cbrt (+ (* re re) (* im im)))))
14.3b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (exp (log (cbrt (+ (* re re) (* im im))))))) re)
30.8b
(cbrt (+ (* re re) (* im im)))
30.8b
(cbrt (+ (* re re) (* im im)))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod add-sqr-sqrt add-cube-cbrt *-un-lft-identity
cbrt-div log-prod exp-sum add-log-exp
pow1 exp-prod
add-exp-log flip3-+ add-cbrt-cube flip-+
pow1/3
log-div exp-diff log-pow
+-commutative sum-log rem-exp-log
Counts
4 → 58
Calls
4 calls:
8.0ms
(exp (log (cbrt (+ (* re re) (* im im)))))
11.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (exp (log (cbrt (+ (* re re) (* im im))))))) re)
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series90.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(exp (log (cbrt (+ (* re re) (* im im)))))
28.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (exp (log (cbrt (+ (* re re) (* im im))))))) re)
20.0ms
(cbrt (+ (* re re) (* im im)))
20.0ms
(cbrt (+ (* re re) (* im im)))

simplify38.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 0 (31.0ms)

IterNodesCost
048761002
148761002

prune112.0ms

Filtered
58 candidates to 70 candidates (-20.7%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New68270
Fresh268
Picked011
Done011
Total701080

Merged error: 16.8b

Counts
80 → 10

regimes488.0ms

Accuracy

59.8% (8.8b remaining)

Error of 26.1b against oracle of 17.4b and baseline of 39.2b

bsearch45.0ms

Steps
ItersRangePoint
6
1.5217820023232387e+115
6.317316159214062e+115
5.873768301992186e+115
6
-5.48614831849223e-301
-1.2520329910745253e-301
-1.2675488608054235e-301

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03862
13862

end0.0ms

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

sample895.0ms

Algorithm
intervals
Results
274.0ms5980×body80valid
197.0ms701×body2560valid
107.0ms318×body5120valid
105.0ms484×body1280valid
48.0ms277×body640valid
20.0ms154×body320valid
7.0ms86×body160valid

Profiling

Loading profile data...