Details

Time bar (total: 3.1s)

sample25.0ms

Algorithm
intervals
Results
6.0ms199×body80valid
4.0ms20×body2560valid
2.0ms16×body1280valid
1.0msbody640valid
1.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0248
1308
2338
3338
done338

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.4b

localize10.0ms

Local error

Found 2 expressions with local error:

0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
28.4b
(sqrt (+ (* re re) (* im im)))

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-sqr-sqrt fma-def sqrt-prod
add-cube-cbrt
add-log-exp
pow1
add-exp-log expm1-log1p-u flip3-+ sqrt-div add-cbrt-cube flip-+ log1p-expm1-u
+-commutative rem-sqrt-square sqrt-pow1 pow1/2 sum-log hypot-def distribute-lft-out
Counts
2 → 38
Calls
2 calls:
35.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series87.0ms

Counts
2 → 6
Calls
2 calls:
50.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify91.0ms

Counts
44 → 44
Iterations

Useful iterations: 4 (87.0ms)

IterNodesCost
0155205
1421183
21067180
33190179
45001178
done5001178

prune124.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 7.3b

localize8.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
0.9b
(+ re (hypot re im))

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-log-exp
add-sqr-sqrt add-cube-cbrt fma-def
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
+-commutative hypot-udef flip3-+ sum-log flip-+ distribute-lft-out
Counts
2 → 27
Calls
2 calls:
0.0ms
(hypot re im)
5.0ms
(+ re (hypot re im))

series108.0ms

Counts
2 → 6
Calls
2 calls:
47.0ms
(hypot re im)
61.0ms
(+ re (hypot re im))

simplify77.0ms

Counts
33 → 33
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
08884
117678
237078
3100478
4313878
5500178
done500178

prune99.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 7.2b

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)))
7.4b
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
25×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
fma-def pow-prod-down pow-sqr
hypot-udef
+-commutative pow2 flip3-+ pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod flip-+
Counts
4 → 87
Calls
4 calls:
0.0ms
(hypot re im)
0.0ms
(hypot re im)
16.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
6.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

series207.0ms

Counts
4 → 12
Calls
4 calls:
52.0ms
(hypot re im)
46.0ms
(hypot re im)
52.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
57.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

simplify180.0ms

Counts
99 → 99
Iterations

Useful iterations: 2 (25.0ms)

IterNodesCost
0171341
1603286
23648275
35001275
done5001275

prune247.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 7.2b

localize23.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))
7.4b
(+ re (* (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) (* (sqrt (cbrt (hypot re im))) (sqrt (hypot re im)))))

rewrite10.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
fma-def pow1/3
+-commutative flip3-+ sum-log flip-+
Counts
4 → 55
Calls
4 calls:
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
7.0ms
(+ re (* (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) (* (sqrt (cbrt (hypot re im))) (sqrt (hypot re im)))))

series402.0ms

Counts
4 → 12
Calls
4 calls:
113.0ms
(cbrt (hypot re im))
113.0ms
(cbrt (hypot re im))
119.0ms
(cbrt (hypot re im))
57.0ms
(+ re (* (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) (* (sqrt (cbrt (hypot re im))) (sqrt (hypot re im)))))

simplify83.0ms

Counts
67 → 67
Iterations

Useful iterations: 3 (78.0ms)

IterNodesCost
0153482
1514416
22454402
35001378
done5001378

prune287.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 7.2b

regimes98.0ms

Accuracy

26.4% (5.2b remaining)

Error of 12.5b against oracle of 7.3b and baseline of 14.4b

bsearch147.0ms

Steps
ItersRangePoint
7
-1.833925802296283e-14
-6.965098439168222e-16
-1.1425655951183048e-14
9
-2.9757909971743123e+131
-3.709175225212192e+126
-9.345587729548568e+128
7
-1.820113320418141e+229
-1.1214053550881e+228
-1.1333132744990301e+228

simplify2.0ms

Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
04034
14517
24817
34817
done4817

end0.0ms

sample698.0ms

Algorithm
intervals
Results
192.0ms6026×body80valid
136.0ms688×body2560valid
80.0ms499×body1280valid
63.0ms281×body5120valid
34.0ms294×body640valid
13.0ms139×body320valid
4.0ms73×body160valid