Details

Time bar (total: 14.6s)

sample100.0ms

Algorithm
intervals
Results
16.0ms194×body80valid
11.0ms21×body2560valid
6.0ms17×body1280valid
4.0msbody5120valid
3.0msbody640valid
2.0msbody320valid
0.0msbody160valid

simplify68.0ms

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

prune5.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.9b

localize31.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
30.6b
(sqrt (+ (* re re) (* im im)))

rewrite134.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:
42.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
74.0ms
(- (sqrt (+ (* re re) (* im im))) re)
14.0ms
(sqrt (+ (* re re) (* im im)))

series381.0ms

Counts
3 → 9
Calls
3 calls:
248.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
64.0ms
(- (sqrt (+ (* re re) (* im im))) re)
68.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.9s

Counts
55 → 55
Iterations
IterNodes
done5000
32212
2631
1231
0109

prune275.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 18.8b

localize33.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
7.3b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
30.6b
(sqrt (+ (* re re) (* im im)))
30.6b
(sqrt (+ (* re re) (* im im)))

rewrite102.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:
56.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
30.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

series245.0ms

Counts
4 → 12
Calls
4 calls:
66.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
76.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))
62.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.0s

Counts
142 → 142
Iterations
IterNodes
done5000
31958
2674
1288
0141

prune678.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 18.8b

localize79.0ms

Local error

Found 4 expressions with local error:

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

rewrite25.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:
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

series240.0ms

Counts
4 → 12
Calls
4 calls:
61.0ms
(sqrt (+ (* re re) (* im im)))
48.0ms
(sqrt (+ (* re re) (* im im)))
67.0ms
(sqrt (+ (* re re) (* im im)))
64.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.6s

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

prune520.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 18.8b

localize44.0ms

Local error

Found 4 expressions with local error:

0.2b
(+ (sqrt (+ (* im im) (* re re))) re)
4.6b
(sqrt (* 2.0 (/ (* im im) (+ (sqrt (+ (* im im) (* re re))) re))))
23.7b
(/ (* im im) (+ (sqrt (+ (* im im) (* re re))) re))
30.6b
(sqrt (+ (* im im) (* re re)))

rewrite103.0ms

Algorithm
rewrite-expression-head
Rules
13×*-un-lft-identity
add-cbrt-cube add-exp-log
add-sqr-sqrt pow1
add-cube-cbrt
add-log-exp
associate-/r* times-frac sqrt-prod insert-posit16
sqrt-pow1 flip3-+ sqrt-div flip-+ distribute-lft-out
cbrt-undiv pow1/2 div-exp associate-/r/
+-commutative rem-sqrt-square clear-num sum-log frac-2neg pow-prod-down prod-exp associate-*r/ cbrt-unprod div-inv associate-/l*
Counts
4 → 68
Calls
4 calls:
21.0ms
(+ (sqrt (+ (* im im) (* re re))) re)
20.0ms
(sqrt (* 2.0 (/ (* im im) (+ (sqrt (+ (* im im) (* re re))) re))))
54.0ms
(/ (* im im) (+ (sqrt (+ (* im im) (* re re))) re))
6.0ms
(sqrt (+ (* im im) (* re re)))

series460.0ms

Counts
4 → 12
Calls
4 calls:
59.0ms
(+ (sqrt (+ (* im im) (* re re))) re)
237.0ms
(sqrt (* 2.0 (/ (* im im) (+ (sqrt (+ (* im im) (* re re))) re))))
122.0ms
(/ (* im im) (+ (sqrt (+ (* im im) (* re re))) re))
42.0ms
(sqrt (+ (* im im) (* re re)))

simplify1.2s

Counts
80 → 80
Iterations
IterNodes
done5000
21409
1408
0150

prune468.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 6.9b

regimes270.0ms

Accuracy

49.4% (15.5b remaining)

Error of 22.6b against oracle of 7.0b and baseline of 37.7b

bsearch338.0ms

Steps
ItersRangePoint
10
9.354770016105222e+108
8.935101861806766e+126
1.1476303183370092e+117
8
7.007905943937183e-135
4.498043395696934e-131
6.510449215984508e-134
8
-3.3673905784781278e-186
-2.883010294888317e-190
-2.9634639532950256e-188
6
-3.67231414207575e-08
-5.984165099293203e-09
-3.6111760266152055e-08

simplify37.0ms

Iterations
IterNodes
done73
373
272
167
048

end0.0ms

sample2.1s

Algorithm
intervals
Results
794.0ms691×body2560valid
567.0ms6013×body80valid
244.0ms295×body5120valid
210.0ms497×body1280valid
80.0ms300×body640valid
47.0ms63×body160valid
29.0ms141×body320valid