Details

Time bar (total: 3.5s)

sample28.0ms

Algorithm
intervals
Results
7.0ms21×body2560valid
6.0ms198×body80valid
2.0ms16×body1280valid
1.0msbody5120valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify9.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0198
1288
2368
3448
4468
5468
done468

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.3b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.2b
(- (sqrt (+ (* re re) (* im im))) re)
31.7b
(sqrt (+ (* re re) (* im im)))

rewrite115.0ms

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

series252.0ms

Counts
3 → 9
Calls
3 calls:
165.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify44.0ms

Counts
83 → 83
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0314760
11192522
25001473
done5001473

prune182.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 7.7b

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
0.0b
(hypot re im)
1.2b
(- (hypot re im) re)

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt *-un-lft-identity
10×add-cube-cbrt
prod-diff
pow1
add-log-exp
add-exp-log expm1-log1p-u fma-neg add-cbrt-cube log1p-expm1-u
sqrt-pow1 sqrt-div associate-*r/
sub-neg hypot-udef flip3-- flip3-+ pow1/2 diff-log pow-prod-down sqrt-prod flip-- flip-+ distribute-lft-out-- difference-of-squares
Counts
3 → 53
Calls
3 calls:
21.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
0.0ms
(hypot re im)
7.0ms
(- (hypot re im) re)

series287.0ms

Counts
3 → 9
Calls
3 calls:
178.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
48.0ms
(hypot re im)
61.0ms
(- (hypot re im) re)

simplify46.0ms

Counts
62 → 62
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0283345
11118247
25001236
done5001236

prune149.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 7.7b

localize13.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.8b
(- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

rewrite29.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)
13.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
13.0ms
(- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

series200.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(hypot re im)
48.0ms
(hypot re im)
46.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
60.0ms
(- (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

simplify37.0ms

Counts
102 → 102
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0198388
1788297
25002285
done5002285

prune227.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 7.6b

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (hypot re im)))
0.2b
(* (pow (sqrt (sqrt (hypot re im))) 3) (sqrt (sqrt (hypot re im))))
0.7b
(pow (sqrt (sqrt (hypot re im))) 3)
10.2b
(- (* (pow (sqrt (sqrt (hypot re im))) 3) (sqrt (sqrt (hypot re im)))) re)

rewrite68.0ms

Algorithm
rewrite-expression-head
Rules
97×sqrt-prod
71×add-sqr-sqrt
27×unpow-prod-down cube-prod
24×add-cube-cbrt *-un-lft-identity associate-*l* unswap-sqr
10×pow1 add-exp-log
associate-*r*
sqrt-pow1
add-cbrt-cube
add-log-exp
pow-pow sqr-pow
expm1-log1p-u pow1/2 log1p-expm1-u
pow-unpow prod-diff prod-exp
cube-mult pow-to-exp rem-sqrt-square unpow3 pow-exp
sub-neg flip3-- pow-plus fma-neg diff-log *-commutative pow-prod-up sqrt-pow2 flip-- cbrt-unprod rem-cube-cbrt
Counts
4 → 154
Calls
4 calls:
3.0ms
(sqrt (sqrt (hypot re im)))
31.0ms
(* (pow (sqrt (sqrt (hypot re im))) 3) (sqrt (sqrt (hypot re im))))
5.0ms
(pow (sqrt (sqrt (hypot re im))) 3)
21.0ms
(- (* (pow (sqrt (sqrt (hypot re im))) 3) (sqrt (sqrt (hypot re im)))) re)

series352.0ms

Counts
4 → 12
Calls
4 calls:
110.0ms
(sqrt (sqrt (hypot re im)))
46.0ms
(* (pow (sqrt (sqrt (hypot re im))) 3) (sqrt (sqrt (hypot re im))))
137.0ms
(pow (sqrt (sqrt (hypot re im))) 3)
58.0ms
(- (* (pow (sqrt (sqrt (hypot re im))) 3) (sqrt (sqrt (hypot re im)))) re)

simplify69.0ms

Counts
166 → 166
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
03841225
11775953
25002812
done5002812

prune339.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 7.6b

regimes115.0ms

Accuracy

0.1% (5.7b remaining)

Error of 13.1b against oracle of 7.4b and baseline of 13.1b

bsearch185.0ms

Steps
ItersRangePoint
8
-3.80808233067461e-41
-9.726232553466861e-46
-2.7809543568425416e-41
9
-3.649797396570063e+16
-66911392.43097515
-645644762598500.5
9
-6.261927662807804e+61
-1.691923950948768e+56
-5.9156754413410994e+60
8
-2.519337225575135e+155
-5.776441892175825e+150
-2.0479595210044226e+153

simplify4.0ms

Iterations

Useful iterations: 2 (1.0ms)

IterNodesCost
04134
14834
25414
35714
46314
57414
68114
78214
88214
done8214

end0.0ms

sample688.0ms

Algorithm
intervals
Results
190.0ms6037×body80valid
127.0ms712×body2560valid
74.0ms462×body1280valid
73.0ms305×body5120valid
31.0ms270×body640valid
14.0ms131×body320valid
5.0ms83×body160valid