Details

Time bar (total: 4.2s)

sample29.0ms

Algorithm
intervals
Results
6.0ms180×body80valid
4.0ms24×body2560valid
4.0ms18×body5120valid
2.0ms17×body1280valid
1.0ms11×body640valid
0.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: 37.6b

localize13.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.7b
(- (sqrt (+ (* re re) (* im im))) re)
28.4b
(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:
28.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
38.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

series257.0ms

Counts
3 → 9
Calls
3 calls:
170.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
50.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify74.0ms

Counts
52 → 52
Iterations

Useful iterations: 3 (70.0ms)

IterNodesCost
0232382
1768356
22506346
35001344
done5001344

prune143.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 16.4b

localize16.0ms

Local error

Found 4 expressions with local error:

0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
5.6b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
19.1b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
28.4b
(sqrt (+ (* re re) (* im im)))

rewrite104.0ms

Algorithm
rewrite-expression-head
Rules
44×*-un-lft-identity
32×times-frac
25×add-sqr-sqrt
24×add-cube-cbrt
15×unpow-prod-down
10×distribute-lft-out
add-exp-log
pow1 associate-/l*
add-cbrt-cube add-log-exp
unpow2 sqr-pow
associate-/r* sqrt-prod
sqrt-pow1 flip3-+ sqrt-div div-exp flip-+
pow1/2 associate-/r/
cbrt-undiv +-commutative pow-to-exp rem-sqrt-square frac-2neg associate-*r/ pow-prod-down pow-exp clear-num sum-log div-inv
Counts
4 → 99
Calls
4 calls:
27.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
25.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
40.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
8.0ms
(sqrt (+ (* re re) (* im im)))

series348.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
194.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
66.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify50.0ms

Counts
111 → 111
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
04171078
11461985
25001978
done5001978

prune285.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 7.1b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
5.6b
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
28.4b
(sqrt (+ (* re re) (* im im)))

rewrite190.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
20×add-sqr-sqrt
18×associate-*r*
14×add-cube-cbrt
13×pow1 times-frac
add-exp-log add-cbrt-cube
add-log-exp
sqrt-pow1 pow-prod-down sqrt-prod distribute-lft-out
flip3-+ sqrt-div associate-*r/ associate-*l* flip-+
pow1/2 prod-exp associate-/r/ cbrt-unprod unswap-sqr
cbrt-undiv +-commutative rem-sqrt-square div-exp sum-log *-commutative div-inv
Counts
4 → 77
Calls
4 calls:
82.0ms
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
27.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
71.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
7.0ms
(sqrt (+ (* re re) (* im im)))

series348.0ms

Counts
4 → 12
Calls
4 calls:
67.0ms
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
194.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Counts
89 → 89
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0428701
11831618
25002614
done5002614

prune227.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 5.8b

localize14.0ms

Local error

Found 4 expressions with local error:

0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
5.6b
(sqrt (* 2.0 (* (/ im (sqrt (+ (sqrt (+ (* re re) (* im im))) re))) (/ im (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))))
28.4b
(sqrt (+ (* re re) (* im im)))
28.4b
(sqrt (+ (* re re) (* im im)))

rewrite186.0ms

Algorithm
rewrite-expression-head
Rules
12×pow1
add-sqr-sqrt *-un-lft-identity
sqrt-div sqrt-prod
add-cube-cbrt add-log-exp
sqrt-pow1
add-exp-log associate-*r/ add-cbrt-cube
flip3-+ pow1/2 pow-prod-down flip-+
rem-sqrt-square
+-commutative frac-times associate-*l/ sum-log distribute-lft-out
Counts
4 → 57
Calls
4 calls:
28.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
139.0ms
(sqrt (* 2.0 (* (/ im (sqrt (+ (sqrt (+ (* re re) (* im im))) re))) (/ im (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))))
7.0ms
(sqrt (+ (* re re) (* im im)))
10.0ms
(sqrt (+ (* re re) (* im im)))

series319.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
198.0ms
(sqrt (* 2.0 (* (/ im (sqrt (+ (sqrt (+ (* re re) (* im im))) re))) (/ im (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))))
37.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify92.0ms

Counts
69 → 69
Iterations

Useful iterations: 3 (86.0ms)

IterNodesCost
0301560
1959523
23254513
35001510
done5001510

prune227.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 2.5b

regimes182.0ms

Accuracy

49.1% (17.5b remaining)

Error of 20.2b against oracle of 2.6b and baseline of 37.1b

bsearch216.0ms

Steps
ItersRangePoint
8
6.634311055573296e+114
1.568190360629047e+118
1.5461101098451557e+118
10
6.370822744094468e-217
1.1498613409719728e-202
7.670159887084534e-217
4
7.427089056077598e-281
1.0961453402580365e-280
1.0409208973439306e-280
9
-2.0111306227756455e-272
-2.0691527770081457e-277
-1.4358415143678644e-274
7
-6.2647846958577624e-164
-3.0755168467636734e-165
-2.9941558332785318e-164
7
-4.232272370085704e+115
-2.3541312420272248e+113
-3.133313689967871e+114

simplify3.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08659
19159
29259
39259
done9259

end0.0ms

sample707.0ms

Algorithm
intervals
Results
189.0ms6004×body80valid
128.0ms688×body2560valid
80.0ms320×body5120valid
73.0ms492×body1280valid
34.0ms250×body640valid
17.0ms161×body320valid
5.0ms85×body160valid