Details

Time bar (total: 3.5s)

sample30.0ms

Algorithm
intervals
Results
6.0ms186×body80valid
4.0ms22×body2560valid
3.0ms19×body1280valid
3.0ms11×body5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358
done358

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.3b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.5b
(- (sqrt (+ (* re re) (* im im))) re)
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite74.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
Calls
3 calls:
25.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
40.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

series255.0ms

Counts
3 → 9
Calls
3 calls:
169.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify73.0ms

Counts
52 → 52
Iterations

Useful iterations: 3 (68.0ms)

IterNodesCost
0232382
1768356
22506346
35001344
done5001344

prune146.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 17.7b

localize13.0ms

Local error

Found 4 expressions with local error:

1.5b
(- (sqrt (+ (* re re) (* im im))) re)
1.5b
(- (sqrt (+ (* re re) (* im im))) re)
29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite95.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×*-un-lft-identity
sqrt-prod add-log-exp
pow1 add-cube-cbrt
add-exp-log sqrt-div add-cbrt-cube difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ distribute-lft-out--
Counts
4 → 60
Calls
4 calls:
38.0ms
(- (sqrt (+ (* re re) (* im im))) re)
40.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series171.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
50.0ms
(- (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify81.0ms

Counts
72 → 72
Iterations

Useful iterations: 4 (76.0ms)

IterNodesCost
0135456
1332432
2839424
32503422
45002420
done5002420

prune223.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 17.7b

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
10.0b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite111.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
51×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
associate-*r* associate-*l* pow-prod-up unswap-sqr
flip3-+ flip-+
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
pow2 sub-neg flip3-- pow-plus sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative flip-- cbrt-unprod difference-of-squares
Counts
4 → 126
Calls
4 calls:
52.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
39.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series163.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
48.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify45.0ms

Counts
138 → 138
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02611112
1935975
25001951
done5001951

prune287.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 17.7b

localize18.0ms

Local error

Found 4 expressions with local error:

29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity sqrt-div
add-exp-log rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 60
Calls
4 calls:
8.0ms
(sqrt (+ (* re re) (* im im)))
7.0ms
(sqrt (+ (* re re) (* im im)))
7.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series151.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify138.0ms

Counts
72 → 72
Iterations

Useful iterations: 5 (133.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384
done5002384

prune300.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 17.7b

regimes260.0ms

Accuracy

55.9% (9.1b remaining)

Error of 27.0b against oracle of 17.9b and baseline of 38.5b

bsearch111.0ms

Steps
ItersRangePoint
10
7.495911143049393e-219
4.3617670924590225e-206
2.268707743098186e-218
8
2.604130790303375e-303
6.94733584068207e-301
4.2978556523375774e-301
7
-2.3797206039891623e+120
-3.6336066115999543e+118
-1.617907908010069e+120

simplify2.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05135
15535
25535
done5535

end0.0ms

sample724.0ms

Algorithm
intervals
Results
197.0ms5982×body80valid
137.0ms731×body2560valid
87.0ms518×body1280valid
62.0ms274×body5120valid
35.0ms270×body640valid
13.0ms149×body320valid
5.0ms76×body160valid