Details

Time bar (total: 4.1s)

sample29.0ms

Algorithm
intervals
Results
6.0ms31×body2560valid
5.0ms172×body80valid
4.0ms24×body1280valid
3.0ms12×body5120valid
1.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

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.9b

localize13.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.4b
(+ (sqrt (+ (* re re) (* im im))) re)
27.2b
(sqrt (+ (* re re) (* im im)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
add-log-exp
*-un-lft-identity
add-sqr-sqrt
pow1 add-cube-cbrt
add-exp-log flip3-+ sqrt-prod add-cbrt-cube flip-+
+-commutative sqrt-div sum-log
rem-sqrt-square sqrt-pow1 pow1/2 distribute-lft-out
Counts
3 → 38
Calls
3 calls:
8.0ms
(+ (* re re) (* im im))
28.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series117.0ms

Counts
3 → 9
Calls
3 calls:
32.0ms
(+ (* re re) (* im im))
45.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify61.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (57.0ms)

IterNodesCost
0178275
1689252
22017248
35001246

prune140.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 21.0b

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
9.9b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
28.1b
(cbrt (+ (* re re) (* im im)))
28.1b
(cbrt (+ (* re re) (* im im)))

rewrite56.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:
26.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
15.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
8.0ms
(cbrt (+ (* re re) (* im im)))
5.0ms
(cbrt (+ (* re re) (* im im)))

series386.0ms

Counts
4 → 12
Calls
4 calls:
111.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
86.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
95.0ms
(cbrt (+ (* re re) (* im im)))
94.0ms
(cbrt (+ (* re re) (* im im)))

simplify41.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0323928
11214868
25002841

prune301.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 21.0b

localize18.0ms

Local error

Found 4 expressions with local error:

12.3b
(+ (* (fabs (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
27.2b
(sqrt (+ (* re re) (* im im)))
27.2b
(sqrt (+ (* re re) (* im im)))
28.1b
(cbrt (+ (* re re) (* im im)))

rewrite39.0ms

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

series256.0ms

Counts
4 → 12
Calls
4 calls:
84.0ms
(+ (* (fabs (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))
95.0ms
(cbrt (+ (* re re) (* im im)))

simplify92.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (85.0ms)

IterNodesCost
0273717
1947650
23136630
35002628

prune317.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 21.0b

localize26.0ms

Local error

Found 4 expressions with local error:

27.2b
(sqrt (+ (* re re) (* im im)))
28.1b
(cbrt (+ (* re re) (* im im)))
28.1b
(cbrt (+ (* re re) (* im im)))
28.1b
(cbrt (+ (* re re) (* im im)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
cbrt-div
pow1
add-exp-log flip3-+ add-cbrt-cube flip-+ add-log-exp
pow1/3 sqrt-prod
sqrt-div
rem-sqrt-square sqrt-pow1 pow1/2
Counts
4 → 54
Calls
4 calls:
8.0ms
(sqrt (+ (* re re) (* im im)))
5.0ms
(cbrt (+ (* re re) (* im im)))
5.0ms
(cbrt (+ (* re re) (* im im)))
5.0ms
(cbrt (+ (* re re) (* im im)))

series325.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(sqrt (+ (* re re) (* im im)))
94.0ms
(cbrt (+ (* re re) (* im im)))
95.0ms
(cbrt (+ (* re re) (* im im)))
94.0ms
(cbrt (+ (* re re) (* im im)))

simplify54.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (47.0ms)

IterNodesCost
0141466
1440436
21469430
35002429

prune412.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 21.0b

regimes505.0ms

Accuracy

58.7% (8.5b remaining)

Error of 26.1b against oracle of 17.6b and baseline of 38.2b

bsearch72.0ms

Steps
ItersRangePoint
8
2.714157836303516e+105
1.0348580530422823e+110
3.570900530608079e+107
8
-4.077449333417644e-292
-7.37072569108761e-295
-7.440559815511445e-295

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03822
13822

end0.0ms

sample705.0ms

Algorithm
intervals
Results
196.0ms6069×body80valid
131.0ms662×body2560valid
73.0ms465×body1280valid
67.0ms295×body5120valid
37.0ms290×body640valid
13.0ms144×body320valid
5.0ms75×body160valid