Details

Time bar (total: 10.2s)

sample164.0ms

Algorithm
intervals
Results
60.0ms69×body1280valid
33.0ms253×body80valid
24.0ms45×body640valid
11.0ms30×body320valid
2.0msbody160valid

simplify355.0ms

Counts
1 → 1
Iterations

Useful iterations: 2 (11.0ms)

IterNodesCost
01937
13137
25336
38436
421636
588036
done500136

prune21.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 32.5b

Counts
2 → 1

localize25.0ms

Local error

Found 4 expressions with local error:

2.2b
(* (atan2 x.im x.re) y.im)
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.3b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log sqrt-prod add-cbrt-cube
sqrt-div add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cos-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 56
Calls
4 calls:
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
9.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series98.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(* (atan2 x.im x.re) y.im)
7.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
7.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
77.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify963.0ms

Counts
68 → 68
Iterations

Useful iterations: 3 (365.0ms)

IterNodesCost
0101846
1205787
2501697
31027677
42130677
done5000677

prune134.0ms

Filtered
54 candidates to 68 candidates (-25.9%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New63568
Fresh000
Picked101
Done000
Total64569

Merged error: 19.1b

Counts
69 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* x.re x.re) (* x.im x.im))
0.2b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
2.2b
(* (atan2 x.im x.re) y.im)
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
11×pow1
add-cube-cbrt *-un-lft-identity associate-*l*
add-exp-log add-cbrt-cube
associate-*r* add-log-exp
sqrt-prod log-pow
sqrt-pow1 flip3-+ pow1/2 sqrt-div pow-prod-down prod-exp *-commutative cbrt-unprod flip-+ unswap-sqr
+-commutative rem-sqrt-square sum-log
Counts
4 → 65
Calls
4 calls:
5.0ms
(+ (* x.re x.re) (* x.im x.im))
6.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series48.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(+ (* x.re x.re) (* x.im x.im))
28.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
7.0ms
(* (atan2 x.im x.re) y.im)
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify1.5s

Counts
77 → 77
Iterations

Useful iterations: 3 (296.0ms)

IterNodesCost
0119868
1274826
2942708
32187702
44953702
done5000702

prune149.0ms

Filtered
60 candidates to 77 candidates (-28.3%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New74377
Fresh044
Picked011
Done000
Total74882

Merged error: 3.6b

Counts
82 → 8

localize29.0ms

Local error

Found 4 expressions with local error:

29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.3b
(cos (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div
add-exp-log add-cbrt-cube add-log-exp
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cos-sum
Counts
4 → 53
Calls
4 calls:
5.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
5.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
25.0ms
(cos (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

series82.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
7.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
63.0ms
(cos (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify604.0ms

Counts
65 → 65
Iterations

Useful iterations: 3 (85.0ms)

IterNodesCost
0751156
11551072
2326762
3673709
41669709
done5000709

prune141.0ms

Filtered
55 candidates to 65 candidates (-18.2%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New65065
Fresh066
Picked011
Done011
Total65873

Merged error: 3.6b

Counts
73 → 8

localize26.0ms

Local error

Found 4 expressions with local error:

2.2b
(* (atan2 x.im x.re) y.im)
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.3b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log sqrt-prod add-cbrt-cube
sqrt-div add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cos-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 56
Calls
4 calls:
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
5.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
8.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series83.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(* (atan2 x.im x.re) y.im)
7.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
62.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify733.0ms

Counts
68 → 68
Iterations

Useful iterations: 3 (139.0ms)

IterNodesCost
0101846
1205787
2501697
31027677
42130677
done5000677

prune126.0ms

Filtered
54 candidates to 68 candidates (-25.9%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New66268
Fresh145
Picked011
Done022
Total67976

Merged error: 3.6b

Counts
76 → 9

regimes476.0ms

Accuracy

67.6% (5.3b remaining)

Error of 8.8b against oracle of 3.5b and baseline of 19.8b

bsearch92.0ms

Steps
ItersRangePoint
9
-1.1320017857953323e-301
8.126837495347253e-308
7.9933606979313e-311

simplify7.0ms

Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
02131
12827
23227
done3227

end0.0ms

sample4.2s

Algorithm
intervals
Results
1.5s2076×body1280valid
952.0ms7993×body80valid
743.0ms1469×body640valid
221.0ms612×body320valid
76.0ms301×body160valid

Profiling

Loading profile data...