Details

Time bar (total: 13.7s)

sample58.0ms

Algorithm
intervals
Results
16.0ms197×body80valid
8.0ms18×body2560valid
5.0ms15×body640valid
4.0msbody5120valid
4.0msbody1280valid
2.0msbody320valid
0.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: 38.2b

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
29.1b
(sqrt (+ (* re re) (* im im)))

rewrite154.0ms

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

series433.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(+ (* re re) (* im im))
263.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
77.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
42.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.1s

Counts
63 → 63
Iterations

Useful iterations: done (2.1s)

IterNodesCost
0108888
1271774
2755698
32070673
done5000668

prune267.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 17.5b

localize36.0ms

Local error

Found 4 expressions with local error:

0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
29.1b
(sqrt (+ (* re re) (* im im)))
29.1b
(sqrt (+ (* re re) (* im im)))

rewrite148.0ms

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

series221.0ms

Counts
4 → 12
Calls
4 calls:
61.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
70.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
46.0ms
(sqrt (+ (* re re) (* im im)))
44.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.9s

Counts
66 → 66
Iterations

Useful iterations: 4 (910.0ms)

IterNodesCost
059858
1143738
2356678
3799658
42089654
done5002654

prune315.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 17.5b

localize27.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.3b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.1b
(sqrt (+ (* re re) (* im im)))
29.1b
(sqrt (+ (* re re) (* im im)))

rewrite144.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
74.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
39.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))
17.0ms
(sqrt (+ (* re re) (* im im)))

series212.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
65.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
46.0ms
(sqrt (+ (* re re) (* im im)))
61.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.3s

Counts
136 → 136
Iterations

Useful iterations: done (2.3s)

IterNodesCost
01333041
12641733
27061579
321081520
done50011479

prune527.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 17.5b

localize24.0ms

Local error

Found 4 expressions with local error:

0.7b
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
11.4b
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
29.1b
(sqrt (+ (* re re) (* im im)))
29.1b
(sqrt (+ (* re re) (* im im)))

rewrite118.0ms

Algorithm
rewrite-expression-head
Rules
42×sqrt-prod
17×add-sqr-sqrt
15×add-cube-cbrt *-un-lft-identity
12×unpow-prod-down cube-prod
11×sqrt-pow1
10×pow1 sqrt-div
pow-pow
add-log-exp
add-exp-log pow1/2 add-cbrt-cube
flip3-+ flip-+
pow-unpow
cube-div rem-sqrt-square
+-commutative cube-mult pow-to-exp unpow3 pow-exp sum-log sqrt-pow2 rem-cube-cbrt sqr-pow
Counts
4 → 91
Calls
4 calls:
19.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
49.0ms
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
17.0ms
(sqrt (+ (* re re) (* im im)))
26.0ms
(sqrt (+ (* re re) (* im im)))

series328.0ms

Counts
4 → 12
Calls
4 calls:
186.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
55.0ms
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
43.0ms
(sqrt (+ (* re re) (* im im)))
44.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.1s

Counts
103 → 103
Iterations

Useful iterations: done (1.1s)

IterNodesCost
01511948
13951446
29771345
done50001281

prune454.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 17.5b

regimes415.0ms

Accuracy

57.9% (8.9b remaining)

Error of 26.4b against oracle of 17.4b and baseline of 38.7b

bsearch106.0ms

Steps
ItersRangePoint
8
9.20494146023971e+137
8.337939306029303e+141
1.0159335777475273e+138
5
-1.1658133888522346e-287
-3.2120421718303128e-288
-3.2587003084137343e-288

simplify5.0ms

Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03674
14674
done4674

end0.0ms

sample2.2s

Algorithm
intervals
Results
956.0ms6004×body80valid
359.0ms709×body2560valid
240.0ms474×body1280valid
143.0ms291×body5120valid
114.0ms295×body640valid
77.0ms151×body320valid
10.0ms76×body160valid