Details

Time bar (total: 3.9s)

sample36.0ms

Algorithm
intervals
Results
10.0ms201×body80valid
9.0ms22×body2560valid
3.0ms11×body1280valid
2.0msbody5120valid
2.0ms10×body640valid
1.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 35.1b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.3b
(+ (sqrt (+ (* re re) (* im im))) re)
27.5b
(sqrt (+ (* re re) (* im im)))

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

series289.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
179.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
44.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify95.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (84.0ms)

IterNodesCost
0274428
1986391
23089381
35002379

prune170.0ms

Filtered
63 candidates to 52 candidates (82.5%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New57663
Fresh000
Picked101
Done000
Total58664

Merged error: 16.5b

Counts
64 → 6

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.6b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.5b
(sqrt (+ (* re re) (* im im)))
27.5b
(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:
20.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
14.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)))

series164.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
45.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
42.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify48.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02671096
1974974
25001950

prune264.0ms

Filtered
136 candidates to 74 candidates (54.4%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1351136
Fresh055
Picked101
Done000
Total1366142

Merged error: 16.5b

Counts
142 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
4.9b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
28.5b
(cbrt (+ (* re re) (* im im)))
28.5b
(cbrt (+ (* re re) (* im im)))

rewrite26.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:
9.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)
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series376.0ms

Counts
4 → 12
Calls
4 calls:
109.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
80.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
93.0ms
(cbrt (+ (* re re) (* im im)))
93.0ms
(cbrt (+ (* re re) (* im im)))

simplify43.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0323928
11214868
25002841

prune269.0ms

Filtered
77 candidates to 66 candidates (85.7%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New76177
Fresh055
Picked101
Done000
Total77683

Merged error: 16.5b

Counts
83 → 6

localize17.0ms

Local error

Found 4 expressions with local error:

4.8b
(exp (log (+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
7.6b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.5b
(sqrt (+ (* re re) (* im im)))
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1
sqrt-prod add-log-exp
add-exp-log exp-prod flip3-+ sqrt-div add-cbrt-cube flip-+
log-prod exp-sum
rem-sqrt-square log-div sqrt-pow1 pow1/2 exp-diff
+-commutative sum-log log-pow rem-exp-log
Counts
4 → 58
Calls
4 calls:
16.0ms
(exp (log (+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
19.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)))

series171.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(exp (log (+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
44.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify117.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 4 (110.0ms)

IterNodesCost
0193715
1489591
21180550
33706542
45002540

prune422.0ms

Filtered
70 candidates to 61 candidates (87.1%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New67370
Fresh055
Picked011
Done000
Total67976

Merged error: 16.5b

Counts
76 → 9

regimes178.0ms

Accuracy

54.4% (10.4b remaining)

Error of 28.1b against oracle of 17.7b and baseline of 40.5b

bsearch101.0ms

Steps
ItersRangePoint
9
1.4543315347187934e-08
0.004314681149180372
0.00424543452278151
9
2.911847167416653e-192
1.9206896213809337e-184
4.987023796564209e-187

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04131
14131

end0.0ms

sample945.0ms

Algorithm
intervals
Results
311.0ms6062×body80valid
187.0ms654×body2560valid
107.0ms457×body1280valid
102.0ms288×body5120valid
60.0ms315×body640valid
20.0ms133×body320valid
8.0ms91×body160valid

Profiling

Loading profile data...