Details

Time bar (total: 13.6s)

sample34.0ms

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

simplify17.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: 36.8b

localize13.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)))

rewrite111.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:
8.0ms
(+ (* re re) (* im im))
33.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
60.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
9.0ms
(sqrt (+ (* re re) (* im im)))

series426.0ms

Counts
4 → 12
Calls
4 calls:
53.0ms
(+ (* re re) (* im im))
245.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
58.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
71.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.2s

Counts
63 → 63
Iterations

Useful iterations: done (2.2s)

IterNodesCost
0108888
1271774
2755698
32070673
done5000668

prune300.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)))

rewrite187.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:
101.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
43.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
17.0ms
(sqrt (+ (* re re) (* im im)))
15.0ms
(sqrt (+ (* re re) (* im im)))

series224.0ms

Counts
4 → 12
Calls
4 calls:
60.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
64.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
46.0ms
(sqrt (+ (* re re) (* im im)))
55.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.3s

Counts
136 → 136
Iterations

Useful iterations: done (2.3s)

IterNodesCost
01333041
12641733
27061579
321081520
done50011479

prune439.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 15.4b

localize39.0ms

Local error

Found 4 expressions with local error:

0.8b
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
11.7b
(+ (* (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)) re)
27.4b
(sqrt (+ (* re re) (* im im)))
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite112.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:
29.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
60.0ms
(+ (* (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)) re)
9.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series366.0ms

Counts
4 → 12
Calls
4 calls:
161.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
77.0ms
(+ (* (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)) re)
53.0ms
(sqrt (+ (* re re) (* im im)))
75.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.2s

Counts
103 → 103
Iterations

Useful iterations: done (1.2s)

IterNodesCost
01511948
13941600
29801449
done50001281

prune475.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 15.4b

localize49.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)))

rewrite107.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:
81.0ms
(+ (* (* (sqrt (sqrt (+ (* re re) (* im im)))) (fabs (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series329.0ms

Counts
4 → 12
Calls
4 calls:
138.0ms
(+ (* (* (sqrt (sqrt (+ (* re re) (* im im)))) (fabs (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (cbrt (sqrt (+ (* re re) (* im im)))))) re)
68.0ms
(sqrt (+ (* re re) (* im im)))
71.0ms
(sqrt (+ (* re re) (* im im)))
52.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.8s

Counts
68 → 68
Iterations

Useful iterations: done (1.8s)

IterNodesCost
0831331
12231219
26401087
319811046
done50001024

prune523.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 15.4b

regimes307.0ms

Accuracy

59.7% (8.8b remaining)

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

bsearch128.0ms

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

simplify9.0ms

Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
03466
14466
done4466

end0.0ms

sample2.0s

Algorithm
intervals
Results
836.0ms5940×body80valid
352.0ms707×body2560valid
192.0ms542×body1280valid
188.0ms255×body5120valid
72.0ms301×body640valid
29.0ms166×body320valid
12.0ms89×body160valid