Details

Time bar (total: 3.2s)

sample36.0ms

Algorithm
intervals
Results
10.0ms203×body80valid
5.0ms18×body2560valid
3.0ms14×body1280valid
2.0msbody5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify9.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.0ms

Filtered
1 candidates to 0 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 35.9b

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

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
pow1 add-log-exp
*-un-lft-identity
add-cube-cbrt sqrt-prod
add-exp-log sqrt-div add-cbrt-cube
sqrt-pow1
flip3-- flip3-+ pow1/2 associate-*r/ flip-- flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square diff-log pow-prod-down sum-log distribute-lft-out--
Counts
4 → 54
Calls
4 calls:
4.0ms
(+ (* re re) (* im im))
7.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)))

series47.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(+ (* re re) (* im im))
24.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (+ (* re re) (* im im)))

simplify106.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (100.0ms)

IterNodesCost
0260458
1982428
23667421
35001420

prune110.0ms

Filtered
66 candidates to 52 candidates (21.2%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New61566
Fresh000
Picked011
Done000
Total61667

Merged error: 18.0b

Counts
67 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
4.4b
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
29.7b
(cbrt (+ (* re re) (* im im)))
29.7b
(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-+ associate-*l* flip-+ unswap-sqr
pow1/3 sqrt-div associate-*r/
sub-neg flip3-- diff-log pow-prod-down prod-exp *-commutative flip-- cbrt-unprod
Counts
4 → 66
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)))

series111.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
30.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
20.0ms
(cbrt (+ (* re re) (* im im)))
25.0ms
(cbrt (+ (* re re) (* im im)))

simplify119.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (109.0ms)

IterNodesCost
03411002
11180942
24515900
35002886

prune128.0ms

Filtered
78 candidates to 66 candidates (15.4%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New77178
Fresh044
Picked011
Done011
Total77784

Merged error: 18.0b

Counts
84 → 7

localize18.0ms

Local error

Found 4 expressions with local error:

5.0b
(exp (log (cbrt (+ (* re re) (* im im)))))
12.5b
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (exp (log (cbrt (+ (* re re) (* im im))))))) re)
29.7b
(cbrt (+ (* re re) (* im im)))
29.7b
(cbrt (+ (* re re) (* im im)))

rewrite26.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 add-cbrt-cube
flip3-+ pow1/3 flip-+
log-div exp-diff log-pow
sub-neg flip3-- diff-log flip-- rem-exp-log
Counts
4 → 59
Calls
4 calls:
5.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)
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series94.0ms

Counts
4 → 12
Calls
4 calls:
21.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)
21.0ms
(cbrt (+ (* re re) (* im im)))
23.0ms
(cbrt (+ (* re re) (* im im)))

simplify85.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 3 (77.0ms)

IterNodesCost
0320797
1953727
23014670
35002638

prune143.0ms

Filtered
71 candidates to 63 candidates (11.3%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New70171
Fresh044
Picked101
Done022
Total71778

Merged error: 18.0b

Counts
78 → 7

localize23.0ms

Local error

Found 4 expressions with local error:

12.8b
(- (* (fabs (* (pow (cbrt (cbrt (+ (* re re) (* im im)))) 2) (cbrt (cbrt (+ (* re re) (* im im)))))) (sqrt (exp (log (cbrt (+ (* re re) (* im im))))))) re)
29.7b
(cbrt (+ (* re re) (* im im)))
29.7b
(cbrt (+ (* re re) (* im im)))
29.7b
(cbrt (+ (* re re) (* im im)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
cbrt-div add-log-exp
pow1 add-exp-log add-cbrt-cube
flip3-+ pow1/3 flip-+
sub-neg flip3-- diff-log flip--
Counts
4 → 51
Calls
4 calls:
12.0ms
(- (* (fabs (* (pow (cbrt (cbrt (+ (* re re) (* im im)))) 2) (cbrt (cbrt (+ (* re re) (* im im)))))) (sqrt (exp (log (cbrt (+ (* re re) (* im im))))))) re)
4.0ms
(cbrt (+ (* re re) (* im im)))
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series89.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(- (* (fabs (* (pow (cbrt (cbrt (+ (* re re) (* im im)))) 2) (cbrt (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)))
20.0ms
(cbrt (+ (* re re) (* im im)))

simplify82.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (75.0ms)

IterNodesCost
0287874
1901781
23124713
35002689

prune149.0ms

Filtered
63 candidates to 61 candidates (3.2%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New62163
Fresh044
Picked101
Done022
Total63770

Merged error: 18.0b

Counts
70 → 7

regimes713.0ms

Accuracy

66.7% (6.4b remaining)

Error of 23.2b against oracle of 16.9b and baseline of 36.0b

bsearch50.0ms

Steps
ItersRangePoint
11
-6.627074657995507e-303
5.476747414844188e-279
6.36710860681304e-310
11
-8.220740893054099e+177
-9.582283671458726e+153
-9.71254003645233e+153

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04223
14423
24423

end0.0ms

sample917.0ms

Algorithm
intervals
Results
343.0ms6637×body80valid
150.0ms505×body2560valid
79.0ms204×body5120valid
77.0ms326×body1280valid
32.0ms167×body640valid
15.0ms109×body320valid
5.0ms52×body160valid

Profiling

Loading profile data...