Details

Time bar (total: 7.1s)

sample65.0ms

Algorithm
intervals
Results
24.0ms282×body80nan
22.0ms256×body80valid

simplify4.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02316
12316

prune4.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 34.9b

Counts
2 → 1

localize25.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
0.4b
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
0.5b
(* (log base) (log base))
32.4b
(sqrt (+ (* re re) (* im im)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
28×add-sqr-sqrt
25×*-un-lft-identity
23×pow1 add-cube-cbrt
12×log-prod
10×add-exp-log associate-*l* log-pow add-cbrt-cube
times-frac
associate-*r*
distribute-rgt-in distribute-lft-in swap-sqr
add-log-exp
flip3-+ associate-/r* sqrt-prod flip-+ associate-/l*
sqrt-pow1 pow1/2 sqrt-div pow-prod-down prod-exp associate-/r/ *-commutative cbrt-unprod associate-/l/ unswap-sqr
cbrt-undiv pow2 rem-sqrt-square frac-2neg pow-plus div-exp clear-num pow-sqr pow-prod-up div-inv
Counts
4 → 110
Calls
4 calls:
10.0ms
(/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
6.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
5.0ms
(* (log base) (log base))
4.0ms
(sqrt (+ (* re re) (* im im)))

series366.0ms

Counts
4 → 12
Calls
4 calls:
96.0ms
(/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
89.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
147.0ms
(* (log base) (log base))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify60.0ms

Algorithm
egg-herbie
Counts
122 → 122
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
04451362
117511236
250011205

prune441.0ms

Filtered
122 candidates to 84 candidates (68.9%)
Pruning

17 alts after pruning (17 fresh and 0 done)

PrunedKeptTotal
New10517122
Fresh000
Picked101
Done000
Total10617123

Merged error: 6.0b

Counts
123 → 17

localize26.0ms

Local error

Found 4 expressions with local error:

0.4b
(/ (/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0)))) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0))))
0.5b
(* (log base) (log base))
0.5b
(* (log base) (log base))
32.4b
(sqrt (+ (* re re) (* im im)))

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
270×times-frac
163×add-sqr-sqrt
162×*-un-lft-identity
158×add-cube-cbrt
141×sqrt-prod
31×pow1
24×associate-/l*
18×sqrt-div
16×associate-/r/
13×add-exp-log add-cbrt-cube
12×log-prod swap-sqr log-pow
flip3-+ flip-+
associate-*r* associate-*l* div-inv
distribute-rgt-in distribute-lft-in associate-/r*
add-log-exp
cbrt-undiv div-exp
pow2 pow-plus pow-prod-down prod-exp pow-sqr *-commutative pow-prod-up cbrt-unprod unswap-sqr
rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 clear-num associate-/l/
Counts
4 → 278
Calls
4 calls:
18.0ms
(/ (/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0)))) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0))))
5.0ms
(* (log base) (log base))
5.0ms
(* (log base) (log base))
4.0ms
(sqrt (+ (* re re) (* im im)))

series440.0ms

Counts
4 → 12
Calls
4 calls:
99.0ms
(/ (/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0)))) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0))))
150.0ms
(* (log base) (log base))
149.0ms
(* (log base) (log base))
41.0ms
(sqrt (+ (* re re) (* im im)))

simplify123.0ms

Algorithm
egg-herbie
Counts
290 → 290
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
08398779
131568145
250018032

prune739.0ms

Filtered
290 candidates to 136 candidates (46.9%)
Pruning

16 alts after pruning (15 fresh and 1 done)

PrunedKeptTotal
New2882290
Fresh31316
Picked011
Done000
Total29116307

Merged error: 6.0b

Counts
307 → 16

localize20.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (/ 1 (+ (* (log base) (log base)) (* 0.0 0.0))))
0.4b
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
0.5b
(* (log base) (log base))
32.4b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
35×add-sqr-sqrt
26×*-un-lft-identity
25×pow1
23×add-cube-cbrt associate-*r*
17×add-exp-log
13×associate-*l* add-cbrt-cube
12×log-prod
11×times-frac
10×log-pow
distribute-rgt-in distribute-lft-in swap-sqr prod-exp
unswap-sqr
flip3-+ cbrt-unprod flip-+ add-log-exp
pow-prod-down sqrt-prod *-commutative
frac-times sqrt-pow1 pow1/2 sqrt-div div-exp associate-*l/ associate-/r/
cbrt-undiv pow2 rem-sqrt-square rec-exp pow-plus 1-exp associate-*r/ pow-sqr un-div-inv pow-prod-up div-inv
Counts
4 → 121
Calls
4 calls:
14.0ms
(* (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (/ 1 (+ (* (log base) (log base)) (* 0.0 0.0))))
6.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
5.0ms
(* (log base) (log base))
4.0ms
(sqrt (+ (* re re) (* im im)))

series370.0ms

Counts
4 → 12
Calls
4 calls:
96.0ms
(* (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (/ 1 (+ (* (log base) (log base)) (* 0.0 0.0))))
88.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
147.0ms
(* (log base) (log base))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify75.0ms

Algorithm
egg-herbie
Counts
133 → 133
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
05691512
126011356
250021312

prune562.0ms

Filtered
133 candidates to 86 candidates (64.7%)
Pruning

17 alts after pruning (16 fresh and 1 done)

PrunedKeptTotal
New1312133
Fresh01414
Picked101
Done011
Total13217149

Merged error: 6.0b

Counts
149 → 17

localize26.0ms

Local error

Found 4 expressions with local error:

0.4b
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
0.6b
(cbrt base)
0.6b
(cbrt base)
32.4b
(sqrt (+ (* re re) (* im im)))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
11×add-cube-cbrt *-un-lft-identity
10×pow1
add-exp-log cbrt-prod log-prod associate-*l* add-cbrt-cube
associate-*r* log-pow add-log-exp
distribute-rgt-in distribute-lft-in sqrt-prod
sqrt-pow1 pow1/2 pow1/3 sqrt-div
rem-sqrt-square flip3-+ pow-prod-down prod-exp *-commutative cbrt-unprod flip-+ unswap-sqr
Counts
4 → 65
Calls
4 calls:
8.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
1.0ms
(cbrt base)
1.0ms
(cbrt base)
4.0ms
(sqrt (+ (* re re) (* im im)))

series453.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
165.0ms
(cbrt base)
168.0ms
(cbrt base)
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify48.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 3 (42.0ms)

IterNodesCost
0225495
1626452
21627429
35001422

prune290.0ms

Filtered
77 candidates to 58 candidates (75.3%)
Pruning

19 alts after pruning (17 fresh and 2 done)

PrunedKeptTotal
New74377
Fresh11415
Picked011
Done011
Total751994

Merged error: 5.9b

Counts
94 → 19

regimes735.0ms

Accuracy

55.6% (10.9b remaining)

Error of 18.4b against oracle of 7.5b and baseline of 32.1b

bsearch298.0ms

Steps
ItersRangePoint
9
1.5751293102757547e+115
7.140180388487143e+122
2.1705154911404016e+122
8
2.384370588866208e-253
3.0904878946447764e-249
3.92741566763516e-251
6
-1.924081377858164e-177
-1.5337444828711919e-178
-3.1005872008885e-178
9
-5.090921102564311e+75
-1.218226967287788e+68
-1.8575861199407474e+74

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07593
17593

end0.0ms

sample1.8s

Algorithm
intervals
Results
719.0ms8000×body80valid
686.0ms8049×body80nan