Details

Time bar (total: 2.8s)

sample29.0ms

Algorithm
intervals
Results
8.0ms187×body80valid
4.0ms24×body1280valid
3.0ms15×body2560valid
2.0ms10×body5120valid
1.0ms10×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

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.2b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
28.2b
(sqrt (+ (* re re) (* im im)))

rewrite71.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
20×*-un-lft-identity
18×add-cube-cbrt prod-diff
16×sqrt-prod
add-log-exp
fma-neg
pow1
add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
flip3-+ sqrt-div flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square flip3-- fma-def sqrt-pow1 pow1/2 diff-log sum-log flip-- hypot-def distribute-lft-out--
Counts
3 → 73
Calls
3 calls:
8.0ms
(+ (* re re) (* im im))
52.0ms
(- (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series102.0ms

Counts
3 → 9
Calls
3 calls:
24.0ms
(+ (* re re) (* im im))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
33.0ms
(sqrt (+ (* re re) (* im im)))

simplify37.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0250664
11037430
25002381

prune183.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 6.8b

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
1.0b
(- (hypot re im) re)

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt prod-diff
add-log-exp
fma-neg
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
sub-neg hypot-udef flip3-- diff-log flip-- distribute-lft-out-- difference-of-squares
Counts
2 → 38
Calls
2 calls:
0.0ms
(hypot re im)
7.0ms
(- (hypot re im) re)

series94.0ms

Counts
2 → 6
Calls
2 calls:
43.0ms
(hypot re im)
51.0ms
(- (hypot re im) re)

simplify50.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 3 (46.0ms)

IterNodesCost
0130223
1366140
21695131
35001109

prune98.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.7b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.0b
(hypot re im)
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
7.3b
(- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt
19×pow1
18×sqrt-prod
13×add-cube-cbrt *-un-lft-identity
sqrt-pow1 pow1/2 swap-sqr
add-exp-log associate-*r* associate-*l* add-cbrt-cube add-log-exp
pow-prod-up
expm1-log1p-u log1p-expm1-u unswap-sqr
prod-diff pow-prod-down pow-sqr
hypot-udef
pow2 sub-neg flip3-- pow-plus fma-neg sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative flip-- cbrt-unprod difference-of-squares
Counts
4 → 90
Calls
4 calls:
0.0ms
(hypot re im)
0.0ms
(hypot re im)
14.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
14.0ms
(- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

series178.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(hypot re im)
43.0ms
(hypot re im)
41.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
53.0ms
(- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

simplify39.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0198388
1788297
25002285

prune223.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 6.7b

localize18.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
9.2b
(- (* (sqrt (hypot re im)) (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im))))) re)

rewrite93.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
add-log-exp
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
pow1/3 prod-diff
sub-neg flip3-- fma-neg diff-log flip--
Counts
4 → 57
Calls
4 calls:
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
89.0ms
(- (* (sqrt (hypot re im)) (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im))))) re)

series359.0ms

Counts
4 → 12
Calls
4 calls:
101.0ms
(cbrt (hypot re im))
100.0ms
(cbrt (hypot re im))
103.0ms
(cbrt (hypot re im))
54.0ms
(- (* (sqrt (hypot re im)) (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im))))) re)

simplify86.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (80.0ms)

IterNodesCost
0171538
1580440
22985425
35002371

prune236.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 6.7b

regimes102.0ms

Accuracy

31.9% (4.2b remaining)

Error of 11.2b against oracle of 7.1b and baseline of 13.1b

bsearch51.0ms

Steps
ItersRangePoint
9
1.661404138935296e-22
3.2716599026957865e-16
3.226330986754208e-16

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12913
22913

end0.0ms

sample710.0ms

Algorithm
intervals
Results
206.0ms6046×body80valid
122.0ms661×body2560valid
76.0ms510×body1280valid
71.0ms300×body5120valid
32.0ms273×body640valid
12.0ms134×body320valid
5.0ms76×body160valid