Details

Time bar (total: 5.8s)

sample37.0ms

Algorithm
intervals
Results
9.0ms197×body80valid
5.0ms19×body2560valid
3.0ms11×body5120valid
2.0msbody1280valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune8.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: 34.7b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.4b
(- (sqrt (+ (* re re) (* im im))) re)
26.7b
(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))
8.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)))

series418.0ms

Counts
4 → 12
Calls
4 calls:
32.0ms
(+ (* re re) (* im im))
285.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
58.0ms
(- (sqrt (+ (* re re) (* im im))) re)
43.0ms
(sqrt (+ (* re re) (* im im)))

simplify109.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (102.0ms)

IterNodesCost
0260458
1982428
23667421
35001420

prune568.0ms

Filtered
66 candidates to 52 candidates (21.2%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New60666
Fresh000
Picked101
Done000
Total61667

Merged error: 16.7b

Counts
67 → 6

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
8.0b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
26.7b
(sqrt (+ (* re re) (* im im)))
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite44.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:
15.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
17.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)))

series187.0ms

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

simplify46.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
02611112
1935975
25001951

prune791.0ms

Filtered
138 candidates to 75 candidates (45.7%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1371138
Fresh145
Picked011
Done000
Total1386144

Merged error: 16.7b

Counts
144 → 6

localize16.0ms

Local error

Found 4 expressions with local error:

4.7b
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
8.0b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
26.7b
(sqrt (+ (* re re) (* im im)))
26.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:
16.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
18.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)))

series201.0ms

Counts
4 → 12
Calls
4 calls:
56.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
58.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
45.0ms
(sqrt (+ (* re re) (* im im)))
42.0ms
(sqrt (+ (* re re) (* im im)))

simplify116.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 4 (106.0ms)

IterNodesCost
0191746
1442597
21109556
33525548
45002542

prune660.0ms

Filtered
73 candidates to 58 candidates (20.5%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New70373
Fresh134
Picked101
Done011
Total72779

Merged error: 16.7b

Counts
79 → 7

localize12.0ms

Local error

Found 4 expressions with local error:

0.2b
(+ re (sqrt (+ (* re re) (* im im))))
5.2b
(sqrt (* 2.0 (/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))))
20.2b
(/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))
26.7b
(sqrt (+ (* re re) (* im im)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
13×*-un-lft-identity
add-exp-log add-cbrt-cube
pow1 add-sqr-sqrt
add-cube-cbrt
add-log-exp
times-frac associate-/r* sqrt-prod
sqrt-pow1 flip3-+ sqrt-div flip-+ distribute-lft-out
cbrt-undiv pow1/2 div-exp associate-/r/
+-commutative rem-sqrt-square frac-2neg associate-*r/ pow-prod-down prod-exp clear-num sum-log cbrt-unprod div-inv associate-/l*
Counts
4 → 64
Calls
4 calls:
8.0ms
(+ re (sqrt (+ (* re re) (* im im))))
8.0ms
(sqrt (* 2.0 (/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))))
8.0ms
(/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series460.0ms

Counts
4 → 12
Calls
4 calls:
56.0ms
(+ re (sqrt (+ (* re re) (* im im))))
282.0ms
(sqrt (* 2.0 (/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))))
80.0ms
(/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))
42.0ms
(sqrt (+ (* re re) (* im im)))

simplify41.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0360615
11446549
25001544

prune529.0ms

Filtered
76 candidates to 61 candidates (19.7%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New70676
Fresh325
Picked101
Done101
Total75883

Merged error: 5.9b

Counts
83 → 8

regimes278.0ms

Accuracy

51.1% (16.9b remaining)

Error of 23.6b against oracle of 6.7b and baseline of 41.2b

bsearch225.0ms

Steps
ItersRangePoint
7
4.8914605440667675e-73
6.934968998500573e-71
6.833290088645846e-71
7
2.258437560461299e-144
5.301064092581315e-143
2.5078630276629363e-144
8
-9.016048349064981e-116
-1.611851990013556e-120
-1.5117392918292036e-117
8
-4.6951025956694755e+83
-2.6917416856478413e+79
-2.1221575183959992e+83

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06434
16934
27034
37034

end0.0ms

sample971.0ms

Algorithm
intervals
Results
286.0ms6060×body80valid
178.0ms662×body2560valid
108.0ms503×body1280valid
100.0ms300×body5120valid
44.0ms257×body640valid
19.0ms151×body320valid
6.0ms67×body160valid

Profiling

Loading profile data...