Details

Time bar (total: 10.2s)

sample27.0ms

Algorithm
intervals
Results
7.0ms192×body80valid
4.0ms18×body2560valid
3.0ms17×body1280valid
2.0ms13×body640valid
1.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify8.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01215
12215
22315
done2315

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.4b

localize16.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite31.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:
11.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
15.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series264.0ms

Counts
3 → 9
Calls
3 calls:
180.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.0s

Counts
49 → 49
Iterations

Useful iterations: done (1.0s)

IterNodesCost
099722
1245617
2714569
32089542
done5001541

prune166.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 16.4b

localize12.0ms

Local error

Found 3 expressions with local error:

0.4b
(* (sqrt 2.0) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite68.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt
14×sqrt-prod
12×*-un-lft-identity
pow1 add-cube-cbrt
associate-*r*
associate-*l*
add-exp-log add-cbrt-cube add-log-exp
sqrt-div unswap-sqr
sqrt-pow1 flip3-+ pow1/2 pow-prod-down flip-+
associate-*r/ distribute-lft-out
+-commutative rem-sqrt-square sqrt-unprod prod-exp sum-log *-commutative cbrt-unprod
Counts
3 → 60
Calls
3 calls:
47.0ms
(* (sqrt 2.0) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
15.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series268.0ms

Counts
3 → 9
Calls
3 calls:
184.0ms
(* (sqrt 2.0) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
44.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.0s

Counts
69 → 69
Iterations

Useful iterations: done (2.0s)

IterNodesCost
01221096
1294971
2976908
33541885
done5000883

prune213.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 16.4b

localize14.0ms

Local error

Found 4 expressions with local error:

12.0b
(+ (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
27.4b
(sqrt (+ (* re re) (* im im)))
27.4b
(sqrt (+ (* re re) (* im im)))
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div add-log-exp
add-exp-log flip3-+ add-cbrt-cube flip-+
rem-sqrt-square sqrt-pow1 pow1/2
+-commutative sum-log
Counts
4 → 56
Calls
4 calls:
37.0ms
(+ (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series176.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(+ (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
46.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.3s

Counts
68 → 68
Iterations

Useful iterations: 4 (643.0ms)

IterNodesCost
0621223
11621127
2413661
31336622
44248614
done5000614

prune295.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 16.4b

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (sqrt (* 2.0 (+ (* im im) 0))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.9b
(- (sqrt (+ (* re re) (* im im))) re)
26.4b
(sqrt (* 2.0 (+ (* im im) 0)))
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite60.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
associate-/r*
pow1 sqrt-div
add-exp-log add-cbrt-cube distribute-lft-out-- add-log-exp
associate-*r/ associate-/l*
sqrt-pow1 flip3-+ flip-+
flip3-- pow1/2 associate-/r/ flip-- associate-/l/
cbrt-undiv sub-neg rem-sqrt-square sqrt-undiv frac-2neg diff-log div-exp pow-prod-down clear-num div-inv
Counts
4 → 109
Calls
4 calls:
28.0ms
(/ (sqrt (* 2.0 (+ (* im im) 0))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
20.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (* 2.0 (+ (* im im) 0)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series338.0ms

Counts
4 → 12
Calls
4 calls:
193.0ms
(/ (sqrt (* 2.0 (+ (* im im) 0))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
58.0ms
(- (sqrt (+ (* re re) (* im im))) re)
39.0ms
(sqrt (* 2.0 (+ (* im im) 0)))
47.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.5s

Counts
121 → 121
Iterations

Useful iterations: done (1.5s)

IterNodesCost
02122952
14522523
216522361
done50002358

prune351.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 10.3b

regimes223.0ms

Accuracy

55.7% (12.0b remaining)

Error of 22.1b against oracle of 10.2b and baseline of 37.2b

bsearch128.0ms

Steps
ItersRangePoint
7
5.023487767188019e-90
3.713870109526283e-88
9.989819735270073e-90
10
-2.7283838574175814e+156
-2.4047927607493394e+144
-1.3292486390963865e+154

simplify5.0ms

Iterations

Useful iterations: 1 (2.0ms)

IterNodesCost
03550
14548
24948
done4948

end0.0ms

sample713.0ms

Algorithm
intervals
Results
212.0ms6020×body80valid
150.0ms719×body2560valid
81.0ms479×body1280valid
64.0ms266×body5120valid
36.0ms280×body640valid
16.0ms163×body320valid
5.0ms73×body160valid