Details

Time bar (total: 14.1s)

sample29.0ms

Algorithm
intervals
Results
13.0ms256×body80valid

simplify5.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
068
178
done78

prune12.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 31.0b

localize9.0ms

Local error

Found 2 expressions with local error:

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

rewrite20.0ms

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

series99.0ms

Counts
2 → 6
Calls
2 calls:
45.0ms
(+ (* re re) (* im im))
53.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.7s

Counts
32 → 32
Iterations

Useful iterations: 2 (113.0ms)

IterNodesCost
048379
1124347
2343295
3968295
42668295
done5000295

prune89.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 9.9b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite124.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:
16.0ms
(+ (* re re) (* im im))
79.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.0ms
(sqrt (+ (* re re) (* im im)))
15.0ms
(sqrt (+ (* re re) (* im im)))

series215.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(+ (* re re) (* im im))
63.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
59.0ms
(sqrt (+ (* re re) (* im im)))
54.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.2s

Counts
136 → 136
Iterations

Useful iterations: done (2.2s)

IterNodesCost
01212803
12331759
26381533
321871496
done50001457

prune362.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 9.9b

localize43.0ms

Local error

Found 4 expressions with local error:

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

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity sqrt-div
add-exp-log rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 60
Calls
4 calls:
10.0ms
(sqrt (+ (* re re) (* im im)))
9.0ms
(sqrt (+ (* re re) (* im im)))
9.0ms
(sqrt (+ (* re re) (* im im)))
10.0ms
(sqrt (+ (* re re) (* im im)))

series221.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(sqrt (+ (* re re) (* im im)))
54.0ms
(sqrt (+ (* re re) (* im im)))
48.0ms
(sqrt (+ (* re re) (* im im)))
68.0ms
(sqrt (+ (* re re) (* im im)))

simplify3.2s

Counts
72 → 72
Iterations

Useful iterations: 3 (117.0ms)

IterNodesCost
038852
191744
2205680
3444656
41114656
53182656
done5001656

prune492.0ms

Pruning

7 alts after pruning (4 fresh and 3 done)

Merged error: 9.9b

localize26.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
5.9b
(exp (log (sqrt (+ (* re re) (* im im)))))
29.1b
(sqrt (+ (* re re) (* im im)))

rewrite57.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 log-prod exp-prod exp-sum sqrt-prod
add-log-exp
sqrt-div
add-exp-log flip3-+ log-pow add-cbrt-cube flip-+
log-div sqrt-pow1 pow1/2 exp-diff
+-commutative rem-sqrt-square sum-log rem-exp-log
Counts
3 → 48
Calls
3 calls:
15.0ms
(+ (* re re) (* im im))
23.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
18.0ms
(sqrt (+ (* re re) (* im im)))

series155.0ms

Counts
3 → 9
Calls
3 calls:
55.0ms
(+ (* re re) (* im im))
60.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.6s

Counts
57 → 57
Iterations

Useful iterations: 4 (1.2s)

IterNodesCost
087739
1169626
2398534
31056534
42807528
done5001528

prune125.0ms

Pruning

10 alts after pruning (7 fresh and 3 done)

Merged error: 9.9b

regimes531.0ms

Accuracy

58.2% (9.9b remaining)

Error of 17.8b against oracle of 7.9b and baseline of 31.6b

bsearch42.0ms

Steps
ItersRangePoint
8
9.20494146023971e+137
8.337939306029303e+141
1.3595155319523303e+138
7
-5.792006846201835e+113
-3.7885935661345695e+111
-1.1564076018637175e+112

simplify2.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01319
11419
done1419

end0.0ms

sample674.0ms

Algorithm
intervals
Results
401.0ms8000×body80valid