Details

Time bar (total: 14.2s)

sample62.0ms

Algorithm
intervals
Results
16.0ms195×body80valid
10.0ms20×body2560valid
5.0ms13×body1280valid
5.0msbody5120valid
3.0msbody640valid
1.0msbody320valid
1.0msbody160valid

simplify20.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01215
12215
22415
done2415

prune7.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.8b

localize25.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)))
1.5b
(+ (sqrt (+ (* re re) (* im im))) re)
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite126.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:
16.0ms
(+ (* re re) (* im im))
32.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
60.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
17.0ms
(sqrt (+ (* re re) (* im im)))

series446.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(+ (* re re) (* im im))
247.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
81.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
69.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.2s

Counts
63 → 63
Iterations

Useful iterations: done (2.2s)

IterNodesCost
0108888
1271774
2755698
32070673
done5000668

prune323.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 15.4b

localize17.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
8.6b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.4b
(sqrt (+ (* re re) (* im im)))
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite177.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:
103.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
38.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
11.0ms
(sqrt (+ (* re re) (* im im)))
13.0ms
(sqrt (+ (* re re) (* im im)))

series245.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
84.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
57.0ms
(sqrt (+ (* re re) (* im im)))
57.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.3s

Counts
136 → 136
Iterations

Useful iterations: done (2.3s)

IterNodesCost
01333041
12641733
27061579
321081520
done50011479

prune495.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 15.4b

localize43.0ms

Local error

Found 4 expressions with local error:

0.8b
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
11.7b
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
27.4b
(sqrt (+ (* re re) (* im im)))
27.4b
(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:
14.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
68.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)))
17.0ms
(sqrt (+ (* re re) (* im im)))

series383.0ms

Counts
4 → 12
Calls
4 calls:
162.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
87.0ms
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
66.0ms
(sqrt (+ (* re re) (* im im)))
66.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.1s

Counts
103 → 103
Iterations

Useful iterations: done (1.1s)

IterNodesCost
01511948
13951446
29771345
done50001281

prune503.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 15.4b

localize30.0ms

Local error

Found 4 expressions with local error:

7.9b
(+ (* (* (sqrt (sqrt (+ (* re re) (* im im)))) (fabs (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (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)))

rewrite148.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:
93.0ms
(+ (* (* (sqrt (sqrt (+ (* re re) (* im im)))) (fabs (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) re)
16.0ms
(sqrt (+ (* re re) (* im im)))
26.0ms
(sqrt (+ (* re re) (* im im)))
9.0ms
(sqrt (+ (* re re) (* im im)))

series290.0ms

Counts
4 → 12
Calls
4 calls:
131.0ms
(+ (* (* (sqrt (sqrt (+ (* re re) (* im im)))) (fabs (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) re)
47.0ms
(sqrt (+ (* re re) (* im im)))
50.0ms
(sqrt (+ (* re re) (* im im)))
62.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.9s

Counts
68 → 68
Iterations

Useful iterations: done (1.9s)

IterNodesCost
0831331
12231219
26401087
319811046
done50001024

prune538.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 15.4b

regimes280.0ms

Accuracy

59.7% (8.8b remaining)

Error of 26.5b against oracle of 17.8b and baseline of 39.5b

bsearch185.0ms

Steps
ItersRangePoint
9
3.828787491213863e+135
1.1582935083099526e+141
8.148041992667695e+135
10
-2.0992367243901195e-295
5.147296625674691e-303
4.00321890872775e-310

simplify10.0ms

Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
03366
14266
done4266

end0.0ms

sample2.2s

Algorithm
intervals
Results
1.1s5940×body80valid
278.0ms707×body2560valid
235.0ms255×body5120valid
212.0ms542×body1280valid
75.0ms301×body640valid
30.0ms166×body320valid
11.0ms89×body160valid