Details

Time bar (total: 3.3s)

sample25.0ms

Algorithm
intervals
Results
7.0ms203×body80valid
3.0ms19×body1280valid
3.0ms14×body2560valid
2.0msbody5120valid
1.0msbody640valid
0.0msbody320valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

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: 36.8b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
27.7b
(sqrt (+ (* re re) (* im im)))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-log-exp
*-un-lft-identity
pow1 add-cube-cbrt sqrt-prod
add-exp-log add-cbrt-cube
flip3-+ sqrt-div flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square flip3-- sqrt-pow1 pow1/2 diff-log sum-log flip-- distribute-lft-out--
Counts
3 → 41
Calls
3 calls:
4.0ms
(+ (* re re) (* im im))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series118.0ms

Counts
3 → 9
Calls
3 calls:
30.0ms
(+ (* re re) (* im im))
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))

simplify62.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 3 (57.0ms)

IterNodesCost
0172305
1661282
21936278
35002276

prune135.0ms

Filtered
50 candidates to 38 candidates (76.0%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New44650
Fresh000
Picked101
Done000
Total45651

Merged error: 17.0b

Counts
51 → 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)))))
6.9b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.7b
(sqrt (+ (* re re) (* im im)))
27.7b
(sqrt (+ (* re re) (* im im)))

rewrite47.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
51×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
associate-*r* associate-*l* pow-prod-up unswap-sqr
flip3-+ flip-+
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
pow2 sub-neg flip3-- pow-plus sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative flip-- cbrt-unprod difference-of-squares
Counts
4 → 126
Calls
4 calls:
16.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
15.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)))

series159.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
50.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify50.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02611112
1935975
25001951

prune258.0ms

Filtered
138 candidates to 74 candidates (53.6%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1371138
Fresh055
Picked101
Done000
Total1386144

Merged error: 17.0b

Counts
144 → 6

localize18.0ms

Local error

Found 4 expressions with local error:

27.7b
(sqrt (* (* (cbrt (+ (* re re) (* im im))) (cbrt (+ (* re re) (* im im)))) (cbrt (+ (* re re) (* im im)))))
28.6b
(cbrt (+ (* re re) (* im im)))
28.6b
(cbrt (+ (* re re) (* im im)))
28.6b
(cbrt (+ (* re re) (* im im)))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
60×cbrt-div
30×flip3-+ flip-+
28×frac-times
26×sqrt-div
24×pow1
15×sqrt-pow1
14×associate-*l/
12×pow1/3
cbrt-prod pow-prod-up
associate-*r/
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow-plus
pow-prod-down
add-exp-log add-cbrt-cube add-log-exp
pow-sqr
pow2
pow1/2 pow3 sqrt-prod
Counts
4 → 89
Calls
4 calls:
18.0ms
(sqrt (* (* (cbrt (+ (* re re) (* im im))) (cbrt (+ (* re re) (* im im)))) (cbrt (+ (* re re) (* im im)))))
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series326.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(sqrt (* (* (cbrt (+ (* re re) (* im im))) (cbrt (+ (* re re) (* im im)))) (cbrt (+ (* re re) (* im im)))))
96.0ms
(cbrt (+ (* re re) (* im im)))
95.0ms
(cbrt (+ (* re re) (* im im)))
98.0ms
(cbrt (+ (* re re) (* im im)))

simplify200.0ms

Algorithm
egg-herbie
Counts
101 → 101
Iterations

Useful iterations: 3 (179.0ms)

IterNodesCost
02871504
17011463
230661446
350011379

prune254.0ms

Filtered
101 candidates to 65 candidates (64.4%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1010101
Fresh055
Picked011
Done000
Total1016107

Merged error: 17.0b

Counts
107 → 6

localize20.0ms

Local error

Found 4 expressions with local error:

4.9b
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
6.9b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.7b
(sqrt (+ (* re re) (* im im)))
27.7b
(sqrt (+ (* re re) (* im im)))

rewrite42.0ms

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

series179.0ms

Counts
4 → 12
Calls
4 calls:
52.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
48.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify114.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 4 (106.0ms)

IterNodesCost
0191746
1442597
21109556
33525548
45002542

prune231.0ms

Filtered
73 candidates to 58 candidates (79.5%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New71273
Fresh044
Picked101
Done011
Total72779

Merged error: 17.0b

Counts
79 → 7

regimes157.0ms

Accuracy

59.7% (8.6b remaining)

Error of 26.6b against oracle of 18.0b and baseline of 39.4b

bsearch89.0ms

Steps
ItersRangePoint
9
-2.0137792410538042e-304
5.82714650145634e-306
2.51191004473425e-310
7
-4.710268451496385e+120
-1.940140840912921e+118
-2.775029731261256e+119

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04433
14433

end0.0ms

sample697.0ms

Algorithm
intervals
Results
201.0ms5962×body80valid
148.0ms725×body2560valid
87.0ms525×body1280valid
68.0ms277×body5120valid
36.0ms294×body640valid
13.0ms146×body320valid
4.0ms71×body160valid