Details

Time bar (total: 2.9s)

sample29.0ms

Algorithm
intervals
Results
7.0ms187×body80valid
4.0ms23×body1280valid
3.0ms16×body2560valid
3.0ms12×body5120valid
1.0ms11×body640valid
1.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: 39.2b

localize10.0ms

Local error

Found 2 expressions with local error:

0.8b
(- (sqrt (+ (* re re) (* im im))) re)
30.3b
(sqrt (+ (* re re) (* im im)))

rewrite61.0ms

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

series89.0ms

Counts
2 → 6
Calls
2 calls:
48.0ms
(- (sqrt (+ (* re re) (* im im))) re)
42.0ms
(sqrt (+ (* re re) (* im im)))

simplify105.0ms

Counts
65 → 65
Iterations

Useful iterations: 3 (100.0ms)

IterNodesCost
0211590
1687366
23279321
35001295
done5001295

prune138.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 6.1b

localize8.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
0.8b
(- (* 1 (hypot re im)) re)

rewrite10.0ms

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

series108.0ms

Counts
2 → 6
Calls
2 calls:
46.0ms
(hypot re im)
61.0ms
(- (* 1 (hypot re im)) re)

simplify50.0ms

Counts
35 → 35
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0134133
1388100
2177997
3500295
done500295

prune97.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.1b

localize11.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)))
10.3b
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt
19×pow1
18×sqrt-prod
14×*-un-lft-identity
13×add-cube-cbrt
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 distribute-lft-out--
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)))
34.0ms
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

series203.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(hypot re im)
46.0ms
(hypot re im)
50.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
58.0ms
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

simplify42.0ms

Counts
102 → 102
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0211391
1869298
25001281
done5001281

prune233.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 6.0b

localize15.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
10.3b
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)
10.3b
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)
10.3b
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

rewrite115.0ms

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt
19×pow1
18×*-un-lft-identity sqrt-prod
15×add-cube-cbrt
10×add-log-exp
prod-diff
sqrt-pow1 pow1/2 swap-sqr
add-exp-log associate-*r* associate-*l* add-cbrt-cube
pow-prod-up
expm1-log1p-u log1p-expm1-u unswap-sqr
sub-neg flip3-- fma-neg diff-log pow-prod-down pow-sqr flip-- distribute-lft-out--
pow2 pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 108
Calls
4 calls:
13.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
32.0ms
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)
33.0ms
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)
34.0ms
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

series230.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
58.0ms
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)
60.0ms
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)
61.0ms
(- (* 1 (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

simplify44.0ms

Counts
120 → 120
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0201697
1856482
25001445
done5001445

prune337.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 6.0b

regimes137.0ms

Accuracy

27.4% (4.6b remaining)

Error of 11.7b against oracle of 7.1b and baseline of 13.4b

bsearch45.0ms

Steps
ItersRangePoint
8
7.746243714250649e-84
2.4297972203424506e-80
1.2775945728899134e-80

simplify1.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02813
13213
23213
done3213

end0.0ms

sample763.0ms

Algorithm
intervals
Results
226.0ms6006×body80valid
143.0ms691×body2560valid
83.0ms485×body1280valid
72.0ms291×body5120valid
36.0ms273×body640valid
16.0ms158×body320valid
6.0ms96×body160valid