Details

Time bar (total: 17.3s)

sample188.0ms

Algorithm
intervals
Results
16.0ms181×body80valid
14.0ms19×body5120valid
14.0ms22×body2560valid
7.0ms16×body1280valid
4.0ms13×body640valid
1.0msbody320valid
0.0msbody160valid

simplify53.0ms

Counts
1 → 1
Iterations
IterNodes
done35
435
330
224
117
012

prune51.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.0b

localize42.0ms

Local error

Found 3 expressions with local error:

0.2b
(- (sqrt (+ (* re re) (* im im))) re)
0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite90.0ms

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

series491.0ms

Counts
3 → 9
Calls
3 calls:
98.0ms
(- (sqrt (+ (* re re) (* im im))) re)
339.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
54.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.9s

Counts
55 → 55
Iterations
IterNodes
done5005
32206
2631
1231
0109

prune294.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 18.5b

localize35.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.2b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.2b
(sqrt (+ (* re re) (* im im)))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite171.0ms

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

series269.0ms

Counts
4 → 12
Calls
4 calls:
72.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
64.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
70.0ms
(sqrt (+ (* re re) (* im im)))
64.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.1s

Counts
142 → 142
Iterations
IterNodes
done5000
31958
2674
1288
0141

prune619.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 18.5b

localize65.0ms

Local error

Found 4 expressions with local error:

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

rewrite39.0ms

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

series217.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(sqrt (+ (* re re) (* im im)))
64.0ms
(sqrt (+ (* re re) (* im im)))
50.0ms
(sqrt (+ (* re re) (* im im)))
52.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.9s

Counts
76 → 76
Iterations
IterNodes
done5001
53254
4995
3435
2196
192
039

prune671.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 18.5b

localize87.0ms

Local error

Found 4 expressions with local error:

29.2b
(sqrt (+ (* re re) (* im im)))
29.2b
(sqrt (+ (* re re) (* im im)))
30.2b
(cbrt (+ (* re re) (* im im)))
30.2b
(cbrt (+ (* re re) (* im im)))

rewrite27.0ms

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

series397.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(sqrt (+ (* re re) (* im im)))
71.0ms
(sqrt (+ (* re re) (* im im)))
165.0ms
(cbrt (+ (* re re) (* im im)))
106.0ms
(cbrt (+ (* re re) (* im im)))

simplify3.2s

Counts
72 → 72
Iterations
IterNodes
done5001
44298
31085
2332
1144
067

prune678.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 18.5b

regimes280.0ms

Accuracy

60% (8.4b remaining)

Error of 25.2b against oracle of 16.8b and baseline of 37.8b

bsearch123.0ms

Steps
ItersRangePoint
7
1.544570416778609e-300
3.190126808092148e-299
2.3724251741656645e-300
6
-3.841706696025466e+111
-2.574025199127893e+110
-2.6008532152452964e+111

simplify10.0ms

Iterations
IterNodes
done47
147
035

end0.0ms

sample2.3s

Algorithm
intervals
Results
1.2s6052×body80valid
354.0ms651×body2560valid
230.0ms313×body5120valid
194.0ms495×body1280valid
128.0ms289×body640valid
30.0ms134×body320valid
9.0ms66×body160valid