Details

Time bar (total: 3.9s)

sample27.0ms

Algorithm
intervals
Results
6.0ms194×body80valid
4.0ms23×body2560valid
2.0ms14×body1280valid
2.0msbody5120valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify6.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0228
1248
2248
done248

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.9b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite63.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:
23.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
31.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series252.0ms

Counts
3 → 9
Calls
3 calls:
168.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
45.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify67.0ms

Counts
49 → 49
Iterations

Useful iterations: 3 (62.0ms)

IterNodesCost
0244351
1743325
22278315
35001312
done5001312

prune151.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 16.9b

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
8.0b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite105.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:
51.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
30.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)))

series156.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
48.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify45.0ms

Counts
136 → 136
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02671096
1974974
25001950
done5001950

prune289.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 16.9b

localize21.0ms

Local error

Found 4 expressions with local error:

29.6b
(sqrt (+ (* re re) (* im im)))
30.6b
(cbrt (+ (* re re) (* im im)))
30.6b
(cbrt (+ (* re re) (* im im)))
30.6b
(cbrt (+ (* re re) (* im im)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
cbrt-div
pow1
add-exp-log flip3-+ add-cbrt-cube flip-+ add-log-exp
pow1/3 sqrt-prod
sqrt-div
rem-sqrt-square sqrt-pow1 pow1/2
Counts
4 → 54
Calls
4 calls:
8.0ms
(sqrt (+ (* re re) (* im im)))
5.0ms
(cbrt (+ (* re re) (* im im)))
7.0ms
(cbrt (+ (* re re) (* im im)))
5.0ms
(cbrt (+ (* re re) (* im im)))

series316.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(sqrt (+ (* re re) (* im im)))
93.0ms
(cbrt (+ (* re re) (* im im)))
94.0ms
(cbrt (+ (* re re) (* im im)))
94.0ms
(cbrt (+ (* re re) (* im im)))

simplify51.0ms

Counts
66 → 66
Iterations

Useful iterations: 3 (46.0ms)

IterNodesCost
0141466
1440436
21469430
35002429
done5002429

prune366.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 16.9b

localize26.0ms

Local error

Found 4 expressions with local error:

29.6b
(sqrt (+ (* re re) (* im im)))
30.6b
(cbrt (+ (* re re) (* im im)))
30.6b
(cbrt (+ (* re re) (* im im)))
30.6b
(cbrt (+ (* re re) (* im im)))

rewrite26.0ms

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

series320.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(sqrt (+ (* re re) (* im im)))
95.0ms
(cbrt (+ (* re re) (* im im)))
95.0ms
(cbrt (+ (* re re) (* im im)))
94.0ms
(cbrt (+ (* re re) (* im im)))

simplify51.0ms

Counts
66 → 66
Iterations

Useful iterations: 3 (46.0ms)

IterNodesCost
0141466
1440436
21469430
35002429
done5002429

prune397.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 16.9b

regimes230.0ms

Accuracy

49.7% (10.8b remaining)

Error of 28.2b against oracle of 17.4b and baseline of 38.8b

bsearch140.0ms

Steps
ItersRangePoint
8
5.820219195236088e+119
5.264749266612397e+122
4.3167714370166035e+122
10
7.495911143049393e-219
4.3617670924590225e-206
1.5163028629072722e-218
7
-3.357300134911745e-38
-3.2345611474486164e-40
-3.282394346843421e-40

simplify2.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06448
16848
26848
done6848

end0.0ms

sample708.0ms

Algorithm
intervals
Results
196.0ms6025×body80valid
129.0ms664×body2560valid
74.0ms492×body1280valid
64.0ms287×body5120valid
33.0ms280×body640valid
14.0ms158×body320valid
6.0ms94×body160valid