Details

Time bar (total: 15.9s)

sample42.0ms

Algorithm
intervals
Results
10.0ms199×body80valid
7.0ms21×body2560valid
5.0ms11×body5120valid
4.0ms14×body1280valid
1.0msbody320valid
0.0msbody640valid
0.0msbody160valid

simplify19.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01215
12215
22415
done2415

prune5.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 41.1b

localize22.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)))

rewrite92.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:
24.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
42.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
26.0ms
(sqrt (+ (* re re) (* im im)))

series412.0ms

Counts
3 → 9
Calls
3 calls:
290.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
54.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
68.0ms
(sqrt (+ (* re re) (* im im)))

simplify3.6s

Counts
49 → 49
Iterations

Useful iterations: 4 (2.0s)

IterNodesCost
099722
1243617
2642569
31604542
44024537
done5000537

prune244.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 13.9b

localize29.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)))

rewrite212.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:
71.0ms
(/ (sqrt (* (* im im) 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
93.0ms
(- (sqrt (+ (* re re) (* im im))) re)
27.0ms
(sqrt (* (* im im) 2.0))
16.0ms
(sqrt (+ (* re re) (* im im)))

series532.0ms

Counts
4 → 12
Calls
4 calls:
336.0ms
(/ (sqrt (* (* im im) 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
82.0ms
(- (sqrt (+ (* re re) (* im im))) re)
71.0ms
(sqrt (* (* im im) 2.0))
43.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.3s

Counts
118 → 118
Iterations

Useful iterations: done (2.3s)

IterNodesCost
01952643
13932410
210182314
328602285
done50022279

prune511.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 8.1b

localize16.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)))

rewrite164.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:
93.0ms
(/ (* (fabs im) (sqrt 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
10.0ms
(* (fabs im) (sqrt 2.0))
42.0ms
(- (sqrt (+ (* re re) (* im im))) re)
13.0ms
(sqrt (+ (* re re) (* im im)))

series416.0ms

Counts
4 → 12
Calls
4 calls:
229.0ms
(/ (* (fabs im) (sqrt 2.0)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
50.0ms
(* (fabs im) (sqrt 2.0))
78.0ms
(- (sqrt (+ (* re re) (* im im))) re)
60.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.4s

Counts
99 → 99
Iterations

Useful iterations: done (1.4s)

IterNodesCost
01931652
14491480
216181364
done50001333

prune428.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 7.1b

localize37.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)))

rewrite152.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:
43.0ms
(- (sqrt (+ (* re re) (* im im))) re)
79.0ms
(- (sqrt (+ (* re re) (* im im))) re)
14.0ms
(sqrt (+ (* re re) (* im im)))
14.0ms
(sqrt (+ (* re re) (* im im)))

series270.0ms

Counts
4 → 12
Calls
4 calls:
83.0ms
(- (sqrt (+ (* re re) (* im im))) re)
68.0ms
(- (sqrt (+ (* re re) (* im im))) re)
59.0ms
(sqrt (+ (* re re) (* im im)))
59.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.7s

Counts
72 → 72
Iterations

Useful iterations: 4 (760.0ms)

IterNodesCost
064962
1137842
2328782
3767762
41986758
done5000758

prune461.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 7.1b

regimes313.0ms

Accuracy

50.2% (14.6b remaining)

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

bsearch280.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

simplify39.0ms

Iterations

Useful iterations: done (39.0ms)

IterNodesCost
053132
167125
270107
373107
done73106

end0.0ms

sample2.2s

Algorithm
intervals
Results
1.1s5987×body80valid
332.0ms702×body2560valid
209.0ms496×body1280valid
146.0ms288×body5120valid
79.0ms297×body640valid
30.0ms160×body320valid
9.0ms70×body160valid