Details

Time bar (total: 2.6s)

sample38.0ms

Algorithm
intervals
Results
10.0ms191×body80valid
6.0ms21×body2560valid
6.0ms16×body5120valid
2.0ms10×body1280valid
2.0ms10×body640valid
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: 40.6b

Counts
2 → 1

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.3b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.0b
(+ (sqrt (+ (* re re) (* im im))) re)
32.8b
(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))
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)))

series39.0ms

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

simplify40.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 0 (34.0ms)

IterNodesCost
05282690

prune116.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: 17.4b

Counts
64 → 7

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
7.6b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
32.8b
(sqrt (+ (* re re) (* im im)))
32.8b
(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)))))
13.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
5.0ms
(sqrt (+ (* re re) (* im im)))

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

simplify54.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 0 (42.0ms)

IterNodesCost
060971470

prune140.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: 17.4b

Counts
143 → 7

localize20.0ms

Local error

Found 4 expressions with local error:

7.3b
(+ (* (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (fabs (cbrt (+ (* re re) (* im im)))))) (sqrt (sqrt (cbrt (+ (* re re) (* im im)))))) re)
32.8b
(sqrt (+ (* re re) (* im im)))
33.8b
(cbrt (+ (* re re) (* im im)))
33.8b
(cbrt (+ (* re re) (* im im)))

rewrite28.0ms

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

series82.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(+ (* (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (fabs (cbrt (+ (* re re) (* im im)))))) (sqrt (sqrt (cbrt (+ (* re re) (* im im)))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
20.0ms
(cbrt (+ (* re re) (* im im)))
22.0ms
(cbrt (+ (* re re) (* im im)))

simplify58.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 0 (50.0ms)

IterNodesCost
049331054
149331054

prune119.0ms

Filtered
53 candidates to 64 candidates (-20.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New63164
Fresh066
Picked011
Done000
Total63871

Merged error: 17.4b

Counts
71 → 8

localize18.0ms

Local error

Found 4 expressions with local error:

1.0b
(pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 5)
13.2b
(+ (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 5) (cbrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
32.8b
(sqrt (+ (* re re) (* im im)))
32.8b
(sqrt (+ (* re re) (* im im)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
15×sqrt-prod
13×add-sqr-sqrt
12×unpow-prod-down
11×add-cube-cbrt *-un-lft-identity
cbrt-prod
pow1
add-log-exp
add-exp-log
sqrt-div add-cbrt-cube
pow-unpow flip3-+ flip-+
rem-sqrt-square pow-pow sqrt-pow1 pow1/2
+-commutative pow-to-exp pow1/3 pow-exp sum-log sqr-pow
Counts
4 → 68
Calls
4 calls:
7.0ms
(pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 5)
14.0ms
(+ (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 5) (cbrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series57.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 5)
7.0ms
(+ (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 5) (cbrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify34.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 0 (26.0ms)

IterNodesCost
04958998
14958998

prune124.0ms

Filtered
64 candidates to 80 candidates (-25.0%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New79180
Fresh066
Picked101
Done011
Total80888

Merged error: 17.4b

Counts
88 → 8

regimes388.0ms

Accuracy

60.1% (8.7b remaining)

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

bsearch41.0ms

Steps
ItersRangePoint
9
2.14645613255865e+90
2.4314027802128217e+95
2.4095428469624423e+95
10
-1.2880785054587291e-291
-7.401970125053545e-302
-7.479484992586778e-302

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04674
14674

end0.0ms

sample1.1s

Algorithm
intervals
Results
314.0ms5965×body80valid
218.0ms695×body2560valid
124.0ms325×body5120valid
123.0ms468×body1280valid
63.0ms317×body640valid
23.0ms142×body320valid
9.0ms88×body160valid

Profiling

Loading profile data...