Details

Time bar (total: 4.7s)

sample27.0ms

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

simplify9.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0198
1288
2368
3448
4468
5468

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)))

rewrite81.0ms

Algorithm
rewrite-expression-head
Rules
90×add-sqr-sqrt *-un-lft-identity
57×sqrt-prod
33×prod-diff
26×add-cube-cbrt hypot-def
25×distribute-lft-out
23×associate-*l*
20×swap-sqr
12×unswap-sqr
11×fma-neg *-commutative
pow1
associate-*r*
add-log-exp
sqrt-div difference-of-squares
add-exp-log expm1-log1p-u rem-sqrt-square sqrt-pow1 add-cbrt-cube log1p-expm1-u
flip3-- pow1/2 associate-*r/ flip-- distribute-lft-out--
+-commutative sub-neg flip3-+ diff-log pow-prod-down flip-+
Counts
3 → 140
Calls
3 calls:
34.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
21.0ms
(- (sqrt (+ (* re re) (* im im))) re)
20.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)))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify47.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
03661122
11359746
25001689

prune250.0ms

Filtered
149 candidates to 79 candidates (53.0%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1445149
Fresh000
Picked101
Done000
Total1455150

Merged error: 8.1b

Counts
150 → 5

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot re im)
0.2b
(sqrt (* 2.0 (* 1 (- (hypot re im) re))))
1.0b
(- (hypot re im) re)

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
37×add-sqr-sqrt
26×sqrt-prod
22×*-un-lft-identity
20×associate-*r*
15×add-cube-cbrt
12×unswap-sqr
pow1 prod-diff
associate-*l*
add-log-exp
rem-sqrt-square associate-*r/
add-exp-log expm1-log1p-u sqrt-pow1 fma-neg pow-prod-down add-cbrt-cube log1p-expm1-u
flip3-- sqrt-div *-commutative flip-- distribute-lft-out-- difference-of-squares
sub-neg hypot-udef pow1/2 diff-log
Counts
3 → 83
Calls
3 calls:
1.0ms
(hypot re im)
17.0ms
(sqrt (* 2.0 (* 1 (- (hypot re im) re))))
6.0ms
(- (hypot re im) re)

series286.0ms

Counts
3 → 9
Calls
3 calls:
44.0ms
(hypot re im)
186.0ms
(sqrt (* 2.0 (* 1 (- (hypot re im) re))))
56.0ms
(- (hypot re im) re)

simplify39.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0350572
11225465
25001446

prune208.0ms

Filtered
92 candidates to 63 candidates (68.5%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New86692
Fresh314
Picked011
Done000
Total89897

Merged error: 7.8b

Counts
97 → 8

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (* (sqrt 2.0) (* 1 (- (hypot re im) re))))
0.2b
(* (sqrt (sqrt 2.0)) (sqrt (* (sqrt 2.0) (* 1 (- (hypot re im) re)))))
0.3b
(* (sqrt 2.0) (* 1 (- (hypot re im) re)))
1.0b
(- (hypot re im) re)

rewrite82.0ms

Algorithm
rewrite-expression-head
Rules
202×add-sqr-sqrt
148×sqrt-prod
100×unswap-sqr
95×associate-*r*
81×*-un-lft-identity
56×add-cube-cbrt
45×prod-diff
44×distribute-rgt-in distribute-lft-in
36×associate-*l*
26×pow1
14×associate-*r/ pow-prod-down
13×add-exp-log
11×add-cbrt-cube
sqrt-pow1
rem-sqrt-square *-commutative
prod-exp add-log-exp
sub-neg
expm1-log1p-u flip3-- sqrt-div flip-- cbrt-unprod log1p-expm1-u distribute-lft-out-- difference-of-squares
pow1/2 fma-neg
sqrt-unprod diff-log 1-exp
Counts
4 → 260
Calls
4 calls:
21.0ms
(sqrt (* (sqrt 2.0) (* 1 (- (hypot re im) re))))
29.0ms
(* (sqrt (sqrt 2.0)) (sqrt (* (sqrt 2.0) (* 1 (- (hypot re im) re)))))
14.0ms
(* (sqrt 2.0) (* 1 (- (hypot re im) re)))
4.0ms
(- (hypot re im) re)

series608.0ms

Counts
4 → 12
Calls
4 calls:
254.0ms
(sqrt (* (sqrt 2.0) (* 1 (- (hypot re im) re))))
191.0ms
(* (sqrt (sqrt 2.0)) (sqrt (* (sqrt 2.0) (* 1 (- (hypot re im) re)))))
98.0ms
(* (sqrt 2.0) (* 1 (- (hypot re im) re)))
64.0ms
(- (hypot re im) re)

simplify97.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (64.0ms)

IterNodesCost
07702799
128752341
250032309

prune525.0ms

Filtered
272 candidates to 138 candidates (50.7%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New2693272
Fresh426
Picked101
Done011
Total2746280

Merged error: 7.8b

Counts
280 → 6

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite75.0ms

Algorithm
rewrite-expression-head
Rules
64×sqrt-prod
63×associate-*l*
61×add-sqr-sqrt
49×*-un-lft-identity
45×associate-*r*
29×add-cube-cbrt
28×distribute-lft-out
16×fma-def
12×pow1 unswap-sqr
10×add-exp-log add-cbrt-cube
*-commutative
add-log-exp
distribute-rgt-neg-in pow-prod-down
expm1-log1p-u log1p-expm1-u
distribute-lft-neg-in prod-exp distribute-rgt-neg-out cbrt-unprod
distribute-rgt-out sqrt-pow1 flip3-+ pow1/2 sqrt-unprod sqrt-div associate-*r/ flip-+
+-commutative neg-mul-1 hypot-udef unsub-neg sum-log
Counts
4 → 157
Calls
4 calls:
31.0ms
(* (sqrt (sqrt 2.0)) (sqrt (+ (* (sqrt 2.0) (hypot re im)) (* (sqrt 2.0) (- re)))))
5.0ms
(* (sqrt 2.0) (hypot re im))
6.0ms
(* (sqrt 2.0) (- re))
26.0ms
(+ (* (sqrt 2.0) (hypot re im)) (* (sqrt 2.0) (- re)))

series621.0ms

Counts
4 → 12
Calls
4 calls:
357.0ms
(* (sqrt (sqrt 2.0)) (sqrt (+ (* (sqrt 2.0) (hypot re im)) (* (sqrt 2.0) (- re)))))
96.0ms
(* (sqrt 2.0) (hypot re im))
47.0ms
(* (sqrt 2.0) (- re))
121.0ms
(+ (* (sqrt 2.0) (hypot re im)) (* (sqrt 2.0) (- re)))

simplify81.0ms

Algorithm
egg-herbie
Counts
169 → 169
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
04681126
122641039
250021020

prune429.0ms

Filtered
169 candidates to 115 candidates (68.0%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1654169
Fresh314
Picked101
Done011
Total1696175

Merged error: 7.8b

Counts
175 → 6

regimes101.0ms

Accuracy

22.4% (4.7b remaining)

Error of 12.1b against oracle of 7.4b and baseline of 13.5b

bsearch107.0ms

Steps
ItersRangePoint
2
5.612059709364952e+140
6.1979150449352185e+140
5.685291626311235e+140
7
3.0152116158740813e+52
1.4121720889927557e+54
3.903092900167564e+52
7
61404.87568264329
1774840.6331059302
1755103.2713431905

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06040
16840
26940
36940

end0.0ms

sample689.0ms

Algorithm
intervals
Results
212.0ms6021×body80valid
143.0ms723×body2560valid
77.0ms479×body1280valid
75.0ms292×body5120valid
34.0ms273×body640valid
14.0ms144×body320valid
4.0ms68×body160valid