Details

Time bar (total: 10.1s)

sample25.0ms

Algorithm
intervals
Results
6.0ms203×body80valid
3.0ms18×body2560valid
3.0ms19×body1280valid
1.0msbody640valid
0.0msbody5120valid
0.0msbody320valid
0.0msbody160valid

simplify22.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01215
11715
22415
33015
43515
done3515

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.0b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite61.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-log-exp
*-un-lft-identity
pow1 add-cube-cbrt sqrt-prod
add-exp-log add-cbrt-cube
flip3-+ sqrt-div flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square flip3-- sqrt-pow1 pow1/2 diff-log sum-log flip-- distribute-lft-out--
Counts
3 → 41
Calls
3 calls:
8.0ms
(+ (* re re) (* im im))
41.0ms
(- (sqrt (+ (* re re) (* im im))) re)
10.0ms
(sqrt (+ (* re re) (* im im)))

series127.0ms

Counts
3 → 9
Calls
3 calls:
29.0ms
(+ (* re re) (* im im))
53.0ms
(- (sqrt (+ (* re re) (* im im))) re)
46.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.2s

Counts
50 → 50
Iterations

Useful iterations: 4 (1.1s)

IterNodesCost
074647
1169578
2454520
31254512
43658510
done5000510

prune148.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 17.0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.6b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
28.5b
(sqrt (+ (* re re) (* im im)))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite116.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
51×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
associate-*r* associate-*l* pow-prod-up unswap-sqr
flip3-+ flip-+
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
pow2 sub-neg flip3-- pow-plus sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative flip-- cbrt-unprod difference-of-squares
Counts
4 → 126
Calls
4 calls:
54.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
40.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series168.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
50.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.4s

Counts
138 → 138
Iterations

Useful iterations: done (1.4s)

IterNodesCost
01383069
12591761
26651607
319341548
done50001507

prune284.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 17.0b

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
3.7b
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
29.4b
(cbrt (+ (* re re) (* im im)))
29.4b
(cbrt (+ (* re re) (* im im)))

rewrite60.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×cbrt-prod add-cube-cbrt *-un-lft-identity
associate-*r*
sqrt-prod
pow1 add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ associate-*l* flip-+ unswap-sqr
pow1/3 sqrt-div associate-*r/
sub-neg flip3-- diff-log pow-prod-down prod-exp *-commutative flip-- cbrt-unprod
Counts
4 → 66
Calls
4 calls:
26.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
20.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
5.0ms
(cbrt (+ (* re re) (* im im)))
7.0ms
(cbrt (+ (* re re) (* im im)))

series402.0ms

Counts
4 → 12
Calls
4 calls:
114.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
90.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
97.0ms
(cbrt (+ (* re re) (* im im)))
100.0ms
(cbrt (+ (* re re) (* im im)))

simplify1.3s

Counts
78 → 78
Iterations

Useful iterations: 3 (464.0ms)

IterNodesCost
01361729
13041583
28251436
320681402
done50001402

prune268.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 17.0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.7b
(+ re (sqrt (+ (* re re) (* im im))))
5.0b
(sqrt (* 2.0 (/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))))
23.2b
(/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite84.0ms

Algorithm
rewrite-expression-head
Rules
13×*-un-lft-identity
add-exp-log add-cbrt-cube
pow1 add-sqr-sqrt
add-cube-cbrt
add-log-exp
times-frac associate-/r* sqrt-prod
sqrt-pow1 flip3-+ sqrt-div flip-+ distribute-lft-out
cbrt-undiv pow1/2 div-exp associate-/r/
+-commutative rem-sqrt-square frac-2neg associate-*r/ pow-prod-down prod-exp clear-num sum-log cbrt-unprod div-inv associate-/l*
Counts
4 → 64
Calls
4 calls:
15.0ms
(+ re (sqrt (+ (* re re) (* im im))))
23.0ms
(sqrt (* 2.0 (/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))))
36.0ms
(/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))
8.0ms
(sqrt (+ (* re re) (* im im)))

series355.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(+ re (sqrt (+ (* re re) (* im im))))
192.0ms
(sqrt (* 2.0 (/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))))
79.0ms
(/ (* im im) (+ re (sqrt (+ (* re re) (* im im)))))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.8s

Counts
76 → 76
Iterations

Useful iterations: 3 (774.0ms)

IterNodesCost
01461254
13571132
210841009
33719979
done5000979

prune176.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 5.9b

regimes173.0ms

Accuracy

49.8% (16.8b remaining)

Error of 23.6b against oracle of 6.7b and baseline of 40.3b

bsearch170.0ms

Steps
ItersRangePoint
9
4.6493452766724325e-07
0.3848154462067827
0.06696772449087016
0
4.152011545874361e-173
4.243788996093313e-173
4.197900270983837e-173
4
-8.071324898542673e-232
-5.2528229590916735e-232
-7.445258062611978e-232
8
-2.7633600539763578e-191
-1.3097588184958676e-194
-1.989273778243921e-194
7
-9.86271453936743e-139
-3.549477558279502e-140
-2.4083856426417863e-139
7
-1.575977550091044e+95
-9.43474742152184e+92
-2.9880507163725877e+94

simplify13.0ms

Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
051105
170105
275105
376105
done76105

end0.0ms

sample687.0ms

Algorithm
intervals
Results
192.0ms6051×body80valid
130.0ms698×body2560valid
72.0ms469×body1280valid
65.0ms276×body5120valid
29.0ms254×body640valid
15.0ms171×body320valid
5.0ms81×body160valid