Details

Time bar (total: 2.4s)

sample35.0ms

Algorithm
intervals
Results
9.0ms191×body80valid
8.0ms30×body2560valid
3.0ms14×body1280valid
2.0ms11×body640valid
1.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03115
13115

prune7.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 38.9b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.0b
(+ (* re re) (* im im))
0.9b
(- (sqrt (+ (* re re) (* im im))) re)
29.2b
(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:
7.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
4.0ms
(+ (* re re) (* im im))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series43.0ms

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

simplify42.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 0 (36.0ms)

IterNodesCost
05269741

prune129.0ms

Filtered
52 candidates to 66 candidates (-26.9%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New57966
Fresh000
Picked101
Done000
Total58967

Merged error: 18.9b

Counts
67 → 9

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
7.7b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.2b
(sqrt (+ (* re re) (* im im)))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite41.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)))))
14.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)))

series27.0ms

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

simplify51.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 0 (39.0ms)

IterNodesCost
058351498

prune143.0ms

Filtered
73 candidates to 138 candidates (-89.0%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1362138
Fresh268
Picked011
Done000
Total1389147

Merged error: 18.9b

Counts
147 → 9

localize23.0ms

Local error

Found 4 expressions with local error:

11.1b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (* (pow (sqrt (cbrt (sqrt (+ (* re re) (* im im))))) 4) (cbrt (sqrt (+ (* re re) (* im im))))))) re)
29.2b
(sqrt (+ (* re re) (* im im)))
29.2b
(sqrt (+ (* re re) (* im im)))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div add-log-exp
add-exp-log add-cbrt-cube
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sub-neg flip3-- diff-log flip--
Counts
4 → 57
Calls
4 calls:
22.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (* (pow (sqrt (cbrt (sqrt (+ (* re re) (* im im))))) 4) (cbrt (sqrt (+ (* re re) (* im im))))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series25.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (* (pow (sqrt (cbrt (sqrt (+ (* re re) (* im im))))) 4) (cbrt (sqrt (+ (* re re) (* im im))))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
5.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 0 (50.0ms)

IterNodesCost
04937638
14937638

prune136.0ms

Filtered
56 candidates to 69 candidates (-23.2%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New69069
Fresh077
Picked011
Done011
Total69978

Merged error: 18.9b

Counts
78 → 9

localize18.0ms

Local error

Found 4 expressions with local error:

0.9b
(pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4)
14.0b
(- (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 2)) re)
29.2b
(sqrt (+ (* re re) (* im im)))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
15×sqrt-prod
13×add-sqr-sqrt
12×unpow-prod-down
11×add-cube-cbrt *-un-lft-identity
cbrt-prod
pow1
add-log-exp
add-exp-log
sqrt-div add-cbrt-cube
pow-unpow
rem-sqrt-square pow-pow sqrt-pow1 flip3-+ pow1/2 flip-+
pow-to-exp sub-neg flip3-- pow1/3 diff-log pow-exp flip-- sqr-pow
Counts
4 → 69
Calls
4 calls:
6.0ms
(pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4)
14.0ms
(- (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 2)) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series53.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4)
7.0ms
(- (* (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 4) (pow (cbrt (sqrt (sqrt (+ (* re re) (* im im))))) 2)) re)
5.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify45.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 0 (37.0ms)

IterNodesCost
04962971
14962971

prune125.0ms

Filtered
60 candidates to 81 candidates (-35.0%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New80181
Fresh156
Picked011
Done022
Total81990

Merged error: 18.9b

Counts
90 → 9

regimes282.0ms

Accuracy

57.6% (9.1b remaining)

Error of 26.6b against oracle of 17.5b and baseline of 39.0b

bsearch49.0ms

Steps
ItersRangePoint
9
-7.676761036242019e-305
3.3654627424431923e-307
1.9838435047488465e-308
8
-9.68551370084772e-266
-3.1195446902457074e-268
-4.786656859853452e-266
7
-3.8095654050866245e+140
-5.961519079968264e+138
-1.1681449413097545e+139

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04974
14974

end0.0ms

sample991.0ms

Algorithm
intervals
Results
296.0ms6060×body80valid
204.0ms718×body2560valid
114.0ms482×body1280valid
89.0ms264×body5120valid
51.0ms273×body640valid
21.0ms134×body320valid
6.0ms69×body160valid

Profiling

Loading profile data...