Details

Time bar (total: 5.2s)

sample39.0ms

Algorithm
intervals
Results
11.0ms197×body80valid
8.0ms27×body2560valid
3.0msbody5120valid
3.0ms12×body1280valid
2.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify13.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01215
11715
22415
32915
43315
done3315

prune7.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 37.2b

Counts
2 → 1

localize11.0ms

Local error

Found 3 expressions with local error:

0.2b
(- (sqrt (+ (* re re) (* im im))) re)
0.5b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
29.8b
(sqrt (+ (* re re) (* im im)))

rewrite23.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:
8.0ms
(- (sqrt (+ (* re re) (* im im))) re)
9.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series42.0ms

Counts
3 → 9
Calls
3 calls:
8.0ms
(- (sqrt (+ (* re re) (* im im))) re)
26.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
8.0ms
(sqrt (+ (* re re) (* im im)))

simplify650.0ms

Counts
52 → 52
Iterations

Useful iterations: 3 (215.0ms)

IterNodesCost
0104782
1231687
2799635
32469612
done5000612

prune109.0ms

Filtered
42 candidates to 52 candidates (-23.8%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New46652
Fresh000
Picked011
Done000
Total46753

Merged error: 18.3b

Counts
53 → 7

localize15.0ms

Local error

Found 4 expressions with local error:

0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
0.7b
(/ (sqrt (* 2.0 (+ (* im im) 0))) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
29.8b
(sqrt (+ (* re re) (* im im)))
29.9b
(sqrt (* 2.0 (+ (* im im) 0)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
35×*-un-lft-identity
32×sqrt-prod
28×times-frac
24×add-sqr-sqrt
23×add-cube-cbrt
pow1 sqrt-div
associate-/r*
add-exp-log add-cbrt-cube distribute-lft-out add-log-exp
flip3-+ flip-+
associate-*r/ associate-/l*
sqrt-pow1
pow1/2 associate-/r/ associate-/l/
cbrt-undiv +-commutative rem-sqrt-square sqrt-undiv frac-2neg div-exp pow-prod-down clear-num sum-log div-inv
Counts
4 → 96
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
16.0ms
(/ (sqrt (* 2.0 (+ (* im im) 0))) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
4.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (* 2.0 (+ (* im im) 0)))

series47.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
29.0ms
(/ (sqrt (* 2.0 (+ (* im im) 0))) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (* 2.0 (+ (* im im) 0)))

simplify421.0ms

Counts
108 → 108
Iterations

Useful iterations: done (417.0ms)

IterNodesCost
01932513
14412126
213901973
done50001945

prune185.0ms

Filtered
81 candidates to 108 candidates (-33.3%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1026108
Fresh325
Picked101
Done011
Total1069115

Merged error: 11.0b

Counts
115 → 9

localize18.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
0.3b
(* (sqrt 2.0) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
29.8b
(sqrt (+ (* re re) (* im im)))

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
54×add-sqr-sqrt
53×*-un-lft-identity
46×times-frac
39×sqrt-prod
37×add-cube-cbrt
27×associate-*r*
11×add-exp-log add-cbrt-cube
distribute-lft-out
pow1 associate-/r*
sqrt-div associate-*l* add-log-exp unswap-sqr
flip3-+ associate-/r/ flip-+
associate-/l*
cbrt-undiv div-exp prod-exp cbrt-unprod div-inv
+-commutative rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 associate-*r/ pow-prod-down clear-num sum-log *-commutative
Counts
4 → 125
Calls
4 calls:
11.0ms
(/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
19.0ms
(* (sqrt 2.0) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
5.0ms
(sqrt (+ (* re re) (* im im)))

series72.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
36.0ms
(* (sqrt 2.0) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))
8.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify541.0ms

Counts
137 → 137
Iterations

Useful iterations: done (536.0ms)

IterNodesCost
02292936
15632690
222812502
done50002490

prune194.0ms

Filtered
89 candidates to 137 candidates (-53.9%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1334137
Fresh347
Picked101
Done011
Total1379146

Merged error: 8.1b

Counts
146 → 9

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt 2.0) (fabs im))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
0.7b
(* (* (sqrt 2.0) (fabs im)) (/ 1 (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))
29.8b
(sqrt (+ (* re re) (* im im)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
30×*-un-lft-identity associate-*r*
28×add-exp-log
27×add-sqr-sqrt
22×add-cube-cbrt
21×times-frac
19×sqrt-prod
18×add-cbrt-cube
13×prod-exp
12×pow1
associate-*l* cbrt-unprod
add-log-exp
sqrt-div div-exp pow-prod-down distribute-lft-out
flip3-+ flip-+
cbrt-undiv rec-exp 1-exp associate-/r/ *-commutative unswap-sqr
+-commutative rem-sqrt-square sqrt-pow1 pow1/2 associate-*r/ sum-log un-div-inv div-inv
Counts
4 → 101
Calls
4 calls:
5.0ms
(* (sqrt 2.0) (fabs im))
8.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
22.0ms
(* (* (sqrt 2.0) (fabs im)) (/ 1 (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series53.0ms

Counts
4 → 12
Calls
4 calls:
4.0ms
(* (sqrt 2.0) (fabs im))
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
29.0ms
(* (* (sqrt 2.0) (fabs im)) (/ 1 (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify629.0ms

Counts
113 → 113
Iterations

Useful iterations: done (626.0ms)

IterNodesCost
02111968
15871712
224461465
done50001438

prune139.0ms

Filtered
71 candidates to 113 candidates (-59.2%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1121113
Fresh077
Picked101
Done011
Total1139122

Merged error: 8.1b

Counts
122 → 9

regimes598.0ms

Accuracy

68.1% (9.7b remaining)

Error of 17.6b against oracle of 7.9b and baseline of 38.3b

bsearch101.0ms

Steps
ItersRangePoint
9
3.43401543638109e+114
5.025550553073085e+120
4.40956572394349e+116
10
1.3994626587696508e-214
2.9831774035161146e-199
1.4225422339265396e-214
6
-3.9639939611996993e-296
-2.6703687768748694e-297
-7.88936342124095e-297
8
-1.0891331514545633e+114
-3.5827156305380124e+111
-4.6910854621363227e+113

simplify4.0ms

Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04783
16183
done6183

end0.0ms

sample1.1s

Algorithm
intervals
Results
344.0ms6084×body80valid
219.0ms687×body2560valid
112.0ms427×body1280valid
108.0ms291×body5120valid
58.0ms287×body640valid
24.0ms158×body320valid
7.0ms66×body160valid

Profiling

Loading profile data...