Details

Time bar (total: 3.2s)

sample27.0ms

Algorithm
intervals
Results
6.0ms184×body80valid
5.0ms28×body2560valid
2.0ms16×body1280valid
2.0msbody5120valid
1.0ms11×body640valid
1.0msbody320valid
0.0msbody160valid

simplify7.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: 38.2b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite23.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:
11.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)))

series257.0ms

Counts
3 → 9
Calls
3 calls:
171.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify74.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (69.0ms)

IterNodesCost
0232382
1768356
22506346
35001344

prune147.0ms

Filtered
52 candidates to 42 candidates (80.8%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New46652
Fresh000
Picked101
Done000
Total47653

Merged error: 18.7b

Counts
53 → 6

localize15.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
10.2b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.8b
(sqrt (+ (* re re) (* im im)))
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite43.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:
38.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
46.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify45.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
02611112
1935975
25001951

prune287.0ms

Filtered
138 candidates to 75 candidates (54.3%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1362138
Fresh145
Picked101
Done000
Total1386144

Merged error: 18.7b

Counts
144 → 6

localize12.0ms

Local error

Found 3 expressions with local error:

0.2b
(sqrt (* 2.0 (- (* (sqrt 1) (sqrt (+ (* re re) (* im im)))) re)))
1.0b
(- (* (sqrt 1) (sqrt (+ (* re re) (* im im)))) re)
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-sqr-sqrt add-log-exp
add-cube-cbrt *-un-lft-identity sqrt-div sqrt-prod
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip--
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+
Counts
3 → 40
Calls
3 calls:
10.0ms
(sqrt (* 2.0 (- (* (sqrt 1) (sqrt (+ (* re re) (* im im)))) re)))
9.0ms
(- (* (sqrt 1) (sqrt (+ (* re re) (* im im)))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series261.0ms

Counts
3 → 9
Calls
3 calls:
175.0ms
(sqrt (* 2.0 (- (* (sqrt 1) (sqrt (+ (* re re) (* im im)))) re)))
47.0ms
(- (* (sqrt 1) (sqrt (+ (* re re) (* im im)))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify90.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (84.0ms)

IterNodesCost
0245422
1822382
22950373
35002370

prune150.0ms

Filtered
49 candidates to 40 candidates (81.6%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New48149
Fresh145
Picked011
Done000
Total49655

Merged error: 18.7b

Counts
55 → 6

localize17.0ms

Local error

Found 4 expressions with local error:

27.8b
(sqrt (+ (* re re) (* im im)))
27.8b
(sqrt (+ (* re re) (* im im)))
27.8b
(sqrt (+ (* re re) (* im im)))
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite18.0ms

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

series149.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify141.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (135.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune305.0ms

Filtered
72 candidates to 60 candidates (83.3%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New72072
Fresh044
Picked011
Done011
Total72678

Merged error: 18.7b

Counts
78 → 6

regimes139.0ms

Accuracy

59.7% (8.4b remaining)

Error of 26.0b against oracle of 17.6b and baseline of 38.5b

bsearch79.0ms

Steps
ItersRangePoint
9
-6.547406122260382e-303
-6.7102388536115e-309
-7.119203138679085e-309
6
-3.245969229886643e+141
-4.4689590379865175e+140
-5.416049338382167e+140

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04725
14725

end0.0ms

sample685.0ms

Algorithm
intervals
Results
203.0ms6021×body80valid
148.0ms723×body2560valid
79.0ms479×body1280valid
69.0ms292×body5120valid
34.0ms273×body640valid
13.0ms144×body320valid
4.0ms68×body160valid