Details

Time bar (total: 3.2s)

sample40.0ms

Algorithm
intervals
Results
12.0ms197×body80valid
8.0ms27×body2560valid
3.0msbody5120valid
3.0ms12×body1280valid
2.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03115
13115

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 37.2b

Counts
2 → 1

localize11.0ms

Local error

Found 3 expressions with local error:

0.2b
(- (sqrt (+ (* re re) (* im im))) re)
0.5b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
29.8b
(sqrt (+ (* re re) (* im im)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
Calls
3 calls:
8.0ms
(- (sqrt (+ (* re re) (* im im))) re)
13.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series42.0ms

Counts
3 → 9
Calls
3 calls:
8.0ms
(- (sqrt (+ (* re re) (* im im))) re)
27.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(sqrt (+ (* re re) (* im im)))

simplify32.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 0 (27.0ms)

IterNodesCost
05297602

prune107.0ms

Filtered
42 candidates to 52 candidates (-23.8%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New46652
Fresh000
Picked011
Done000
Total46753

Merged error: 18.3b

Counts
53 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.6b
(+ re (sqrt (+ (* re re) (* im im))))
0.7b
(/ (sqrt (* (* im im) 2.0)) (sqrt (+ re (sqrt (+ (* re re) (* im im))))))
29.8b
(sqrt (+ (* re re) (* im im)))
29.9b
(sqrt (* (* im im) 2.0))

rewrite32.0ms

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

series46.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(+ re (sqrt (+ (* re re) (* im im))))
28.0ms
(/ (sqrt (* (* im im) 2.0)) (sqrt (+ re (sqrt (+ (* re re) (* im im))))))
6.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (* (* im im) 2.0))

simplify44.0ms

Algorithm
egg-herbie
Counts
105 → 105
Iterations

Useful iterations: 0 (33.0ms)

IterNodesCost
059311890

prune186.0ms

Filtered
80 candidates to 105 candidates (-31.3%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New996105
Fresh325
Picked101
Done011
Total1039112

Merged error: 11.0b

Counts
112 → 9

localize15.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (fabs im) (/ (sqrt 2.0) (sqrt (+ re (sqrt (+ (* im im) (* re re)))))))
0.3b
(/ (sqrt 2.0) (sqrt (+ re (sqrt (+ (* im im) (* re re))))))
0.6b
(+ re (sqrt (+ (* im im) (* re re))))
29.8b
(sqrt (+ (* im im) (* re re)))

rewrite49.0ms

Algorithm
rewrite-expression-head
Rules
104×sqrt-prod
91×*-un-lft-identity
88×times-frac
78×add-sqr-sqrt
63×add-cube-cbrt
48×associate-*r*
14×distribute-lft-out
11×add-exp-log add-cbrt-cube
pow1 associate-/r*
sqrt-div associate-/l* add-log-exp
unswap-sqr
flip3-+ associate-/r/ flip-+
associate-*l*
cbrt-undiv div-exp prod-exp cbrt-unprod div-inv
+-commutative rem-sqrt-square sqrt-undiv frac-2neg sqrt-pow1 pow1/2 associate-*r/ pow-prod-down clear-num sum-log *-commutative
Counts
4 → 167
Calls
4 calls:
20.0ms
(* (fabs im) (/ (sqrt 2.0) (sqrt (+ re (sqrt (+ (* im im) (* re re)))))))
10.0ms
(/ (sqrt 2.0) (sqrt (+ re (sqrt (+ (* im im) (* re re))))))
6.0ms
(+ re (sqrt (+ (* im im) (* re re))))
4.0ms
(sqrt (+ (* im im) (* re re)))

series78.0ms

Counts
4 → 12
Calls
4 calls:
31.0ms
(* (fabs im) (/ (sqrt 2.0) (sqrt (+ re (sqrt (+ (* im im) (* re re)))))))
32.0ms
(/ (sqrt 2.0) (sqrt (+ re (sqrt (+ (* im im) (* re re))))))
8.0ms
(+ re (sqrt (+ (* im im) (* re re))))
7.0ms
(sqrt (+ (* im im) (* re re)))

simplify48.0ms

Algorithm
egg-herbie
Counts
179 → 179
Iterations

Useful iterations: 0 (30.0ms)

IterNodesCost
050003248

prune244.0ms

Filtered
102 candidates to 179 candidates (-75.5%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New1754179
Fresh257
Picked101
Done011
Total17810188

Merged error: 0.4b

Counts
188 → 10

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (/ 2.0 (+ re (sqrt (+ (* im im) (* re re))))))
0.2b
(* (fabs im) (sqrt (/ 2.0 (+ re (sqrt (+ (* im im) (* re re)))))))
0.6b
(+ re (sqrt (+ (* im im) (* re re))))
29.8b
(sqrt (+ (* im im) (* re re)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
41×sqrt-prod
37×*-un-lft-identity
34×add-sqr-sqrt
26×times-frac
23×add-cube-cbrt
21×associate-*r*
pow1
distribute-lft-out
add-exp-log add-cbrt-cube add-log-exp
flip3-+ sqrt-div associate-/r/ flip-+
rem-sqrt-square associate-*l* unswap-sqr
sqrt-pow1 pow1/2 div-inv
+-commutative associate-*r/ pow-prod-down prod-exp sum-log *-commutative cbrt-unprod
Counts
4 → 96
Calls
4 calls:
8.0ms
(sqrt (/ 2.0 (+ re (sqrt (+ (* im im) (* re re))))))
14.0ms
(* (fabs im) (sqrt (/ 2.0 (+ re (sqrt (+ (* im im) (* re re)))))))
6.0ms
(+ re (sqrt (+ (* im im) (* re re))))
4.0ms
(sqrt (+ (* im im) (* re re)))

series74.0ms

Counts
4 → 12
Calls
4 calls:
28.0ms
(sqrt (/ 2.0 (+ re (sqrt (+ (* im im) (* re re))))))
29.0ms
(* (fabs im) (sqrt (/ 2.0 (+ re (sqrt (+ (* im im) (* re re)))))))
8.0ms
(+ re (sqrt (+ (* im im) (* re re))))
9.0ms
(sqrt (+ (* im im) (* re re)))

simplify24.0ms

Algorithm
egg-herbie
Counts
108 → 108
Iterations

Useful iterations: 0 (13.0ms)

IterNodesCost
050211702

prune157.0ms

Filtered
84 candidates to 108 candidates (-28.6%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New1062108
Fresh088
Picked101
Done011
Total10711118

Merged error: 0.3b

Counts
118 → 11

regimes654.0ms

Accuracy

54.6% (17.2b remaining)

Error of 17.6b against oracle of 0.4b and baseline of 38.3b

bsearch103.0ms

Steps
ItersRangePoint
9
3.43401543638109e+114
5.025550553073085e+120
4.40956572394349e+116
10
1.3994626587696508e-214
2.9831774035161146e-199
1.4225422339265396e-214
6
-3.9639939611996993e-296
-2.6703687768748694e-297
-7.88936342124095e-297
8
-1.0891331514545633e+114
-3.5827156305380124e+111
-4.6910854621363227e+113

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06091
16091

end0.0ms

sample1.1s

Algorithm
intervals
Results
348.0ms6084×body80valid
224.0ms687×body2560valid
116.0ms427×body1280valid
112.0ms291×body5120valid
62.0ms287×body640valid
25.0ms158×body320valid
7.0ms66×body160valid

Profiling

Loading profile data...