Details

Time bar (total: 16.5s)

sample63.0ms

Algorithm
intervals
Results
18.0ms199×body80valid
10.0ms19×body2560valid
8.0ms13×body5120valid
6.0ms14×body1280valid
2.0msbody320valid
1.0msbody640valid
1.0msbody160valid

simplify10.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01215
12215
22415
done2415

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 41.1b

localize36.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.0b
(+ (sqrt (+ (* re re) (* im im))) re)
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite108.0ms

Algorithm
rewrite-expression-head
Rules
pow1
*-un-lft-identity
add-sqr-sqrt add-log-exp
add-cube-cbrt sqrt-div sqrt-prod
add-exp-log sqrt-pow1 flip3-+ add-cbrt-cube flip-+
pow1/2 associate-*r/
+-commutative rem-sqrt-square pow-prod-down sum-log distribute-lft-out
Counts
3 → 40
Calls
3 calls:
44.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
45.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
18.0ms
(sqrt (+ (* re re) (* im im)))

series375.0ms

Counts
3 → 9
Calls
3 calls:
232.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
91.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
52.0ms
(sqrt (+ (* re re) (* im im)))

simplify3.7s

Counts
49 → 49
Iterations

Useful iterations: 4 (2.0s)

IterNodesCost
099722
1243617
2642569
31604542
44024537
done5000537

prune223.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 13.9b

localize34.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (sqrt (* (* im im) 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.9b
(- (sqrt (+ (* re re) (* im im))) re)
30.1b
(sqrt (* (* im im) 2.0))
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite215.0ms

Algorithm
rewrite-expression-head
Rules
50×add-sqr-sqrt sqrt-prod
37×*-un-lft-identity
36×times-frac
25×add-cube-cbrt
12×difference-of-squares
11×pow1
associate-/r*
add-exp-log add-cbrt-cube distribute-lft-out-- add-log-exp
sqrt-pow1 sqrt-div associate-/l*
pow-prod-down
flip3-- pow1/2 associate-/r/ flip--
cbrt-undiv sub-neg rem-sqrt-square sqrt-undiv frac-2neg flip3-+ diff-log div-exp clear-num flip-+ div-inv
Counts
4 → 106
Calls
4 calls:
102.0ms
(/ (sqrt (* (* im im) 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
73.0ms
(- (sqrt (+ (* re re) (* im im))) re)
16.0ms
(sqrt (* (* im im) 2.0))
16.0ms
(sqrt (+ (* re re) (* im im)))

series484.0ms

Counts
4 → 12
Calls
4 calls:
284.0ms
(/ (sqrt (* (* im im) 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
76.0ms
(- (sqrt (+ (* re re) (* im im))) re)
68.0ms
(sqrt (* (* im im) 2.0))
56.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.5s

Counts
118 → 118
Iterations

Useful iterations: done (2.5s)

IterNodesCost
01952643
13932410
210182314
328602285
done50022279

prune509.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 8.1b

localize35.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (* (fabs im) (sqrt 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.5b
(* (fabs im) (sqrt 2.0))
0.9b
(- (sqrt (+ (* re re) (* im im))) re)
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite171.0ms

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt
22×sqrt-prod
18×*-un-lft-identity
12×add-cube-cbrt
11×add-exp-log add-cbrt-cube
times-frac associate-/r*
pow1
associate-*r* add-log-exp difference-of-squares
sqrt-div
associate-*l* distribute-lft-out--
cbrt-undiv flip3-- div-exp prod-exp associate-/r/ flip-- cbrt-unprod unswap-sqr
sub-neg rem-sqrt-square frac-2neg sqrt-pow1 flip3-+ pow1/2 diff-log pow-prod-down clear-num *-commutative flip-+ div-inv associate-/l*
Counts
4 → 87
Calls
4 calls:
67.0ms
(/ (* (fabs im) (sqrt 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
22.0ms
(* (fabs im) (sqrt 2.0))
71.0ms
(- (sqrt (+ (* re re) (* im im))) re)
9.0ms
(sqrt (+ (* re re) (* im im)))

series396.0ms

Counts
4 → 12
Calls
4 calls:
219.0ms
(/ (* (fabs im) (sqrt 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
62.0ms
(* (fabs im) (sqrt 2.0))
64.0ms
(- (sqrt (+ (* re re) (* im im))) re)
52.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.4s

Counts
99 → 99
Iterations

Useful iterations: done (1.4s)

IterNodesCost
01931652
14491480
216181364
done50001333

prune400.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 7.1b

localize29.0ms

Local error

Found 4 expressions with local error:

0.9b
(- (sqrt (+ (* re re) (* im im))) re)
0.9b
(- (sqrt (+ (* re re) (* im im))) re)
32.7b
(sqrt (+ (* re re) (* im im)))
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite183.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:
61.0ms
(- (sqrt (+ (* re re) (* im im))) re)
86.0ms
(- (sqrt (+ (* re re) (* im im))) re)
24.0ms
(sqrt (+ (* re re) (* im im)))
9.0ms
(sqrt (+ (* re re) (* im im)))

series263.0ms

Counts
4 → 12
Calls
4 calls:
72.0ms
(- (sqrt (+ (* re re) (* im im))) re)
74.0ms
(- (sqrt (+ (* re re) (* im im))) re)
62.0ms
(sqrt (+ (* re re) (* im im)))
55.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.7s

Counts
72 → 72
Iterations

Useful iterations: 4 (838.0ms)

IterNodesCost
064962
1137842
2328782
3767762
41986758
done5000758

prune483.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 7.1b

regimes347.0ms

Accuracy

50.2% (14.6b remaining)

Error of 22.6b against oracle of 8.0b and baseline of 37.4b

bsearch336.0ms

Steps
ItersRangePoint
9
9.208203168852366e-97
6.460632185244904e-91
4.202834506095947e-94
3
9.630645247606357e-160
1.1174213342480038e-159
9.727118253535962e-160
8
2.419960472709144e-207
1.9603440090509578e-204
1.2802976578175363e-204
8
1.1317114056863307e-247
4.201890819355548e-245
5.124751274050741e-246
9
-1.703715759581658e-137
-4.0504560254265596e-144
-4.2156616274993736e-144
2
-5.449253800430163e+114
-4.7106032971479507e+114
-5.330091552844717e+114

simplify16.0ms

Iterations

Useful iterations: done (16.0ms)

IterNodesCost
053132
167125
270107
373107
done73106

end0.0ms

sample2.4s

Algorithm
intervals
Results
874.0ms690×body2560valid
773.0ms5987×body80valid
195.0ms496×body1280valid
178.0ms300×body5120valid
97.0ms297×body640valid
37.0ms160×body320valid
11.0ms70×body160valid