Details

Time bar (total: 7.6s)

sample57.0ms

Algorithm
intervals
Results
20.0ms250×body80nan
19.0ms256×body80valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02716
13316
23316

prune4.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.0b

localize25.0ms

Local error

Found 4 expressions with local error:

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

rewrite32.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
expm1-log1p-u log1p-expm1-u 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 hypot-def div-inv
Counts
4 → 119
Calls
4 calls:
6.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
14.0ms
(/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
4.0ms
(* (log base) (log base))
4.0ms
(sqrt (+ (* re re) (* im im)))

series376.0ms

Counts
4 → 12
Calls
4 calls:
91.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
101.0ms
(/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
148.0ms
(* (log base) (log base))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify64.0ms

Algorithm
egg-herbie
Counts
131 → 131
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
04671408
118201268
250011217

prune474.0ms

Filtered
131 candidates to 95 candidates (72.5%)
Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 0.2b

localize18.0ms

Local error

Found 3 expressions with local error:

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

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt
23×*-un-lft-identity
22×pow1
21×add-cube-cbrt
12×log-prod
add-exp-log times-frac associate-*l* log-pow add-cbrt-cube
associate-*r*
distribute-rgt-in distribute-lft-in swap-sqr
expm1-log1p-u pow-prod-down associate-/r* log1p-expm1-u associate-/l* add-log-exp
flip3-+ prod-exp associate-/r/ *-commutative cbrt-unprod flip-+ associate-/l/ unswap-sqr
cbrt-undiv pow2 frac-2neg pow-plus div-exp clear-num pow-sqr pow-prod-up div-inv
Counts
3 → 100
Calls
3 calls:
8.0ms
(* (log (* 1 (hypot re im))) (log base))
18.0ms
(/ (+ (* (log (* 1 (hypot re im))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
5.0ms
(* (log base) (log base))

series362.0ms

Counts
3 → 9
Calls
3 calls:
102.0ms
(* (log (* 1 (hypot re im))) (log base))
109.0ms
(/ (+ (* (log (* 1 (hypot re im))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
152.0ms
(* (log base) (log base))

simplify54.0ms

Algorithm
egg-herbie
Counts
109 → 109
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
03811125
11567988
25002945

prune377.0ms

Filtered
109 candidates to 76 candidates (69.7%)
Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 0b

localize26.0ms

Local error

Found 4 expressions with local error:

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

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
66×times-frac
44×add-sqr-sqrt *-un-lft-identity
42×add-cube-cbrt
25×add-exp-log
24×sqrt-prod
20×add-cbrt-cube
17×pow1
10×div-exp associate-/l*
div-inv
cbrt-undiv associate-/r*
log-prod swap-sqr log-pow
prod-exp
expm1-log1p-u associate-*r* associate-*l* log1p-expm1-u add-log-exp
distribute-rgt-in distribute-lft-in cbrt-unprod
frac-2neg sqrt-div 1-exp clear-num associate-/r/
pow2 flip3-+ pow-plus pow-prod-down pow-sqr *-commutative pow-prod-up flip-+ fma-udef associate-/l/ unswap-sqr
Counts
4 → 149
Calls
4 calls:
0.0ms
(fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0))
3.0ms
(/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))
11.0ms
(/ (/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1)) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0))))
5.0ms
(* (log base) (log base))

series1.1s

Counts
4 → 12
Calls
4 calls:
144.0ms
(fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0))
357.0ms
(/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))
430.0ms
(/ (/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1)) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0))))
149.0ms
(* (log base) (log base))

simplify64.0ms

Algorithm
egg-herbie
Counts
161 → 161
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
05522653
120092343
250012317

prune732.0ms

Filtered
161 candidates to 110 candidates (68.3%)
Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0b

localize19.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ 1 (/ (hypot (log base) 0.0) 1))
0.3b
(fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0))
0.3b
(* (/ 1 (/ (hypot (log base) 0.0) 1)) (/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1)))
0.4b
(/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))

rewrite56.0ms

Algorithm
rewrite-expression-head
Rules
170×add-exp-log
157×times-frac
104×add-sqr-sqrt
93×div-exp
90×*-un-lft-identity
85×add-cube-cbrt
62×prod-exp
50×add-cbrt-cube
44×associate-*l*
41×1-exp
20×cbrt-undiv
15×rec-exp
14×associate-/r*
13×cbrt-unprod
11×div-inv
pow1 associate-*r* unswap-sqr
associate-/l*
expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg clear-num associate-/r/
frac-times pow-flip associate-*r/ pow-prod-down associate-*l/ *-commutative fma-udef inv-pow
Counts
4 → 236
Calls
4 calls:
8.0ms
(/ 1 (/ (hypot (log base) 0.0) 1))
0.0ms
(fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0))
31.0ms
(* (/ 1 (/ (hypot (log base) 0.0) 1)) (/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1)))
3.0ms
(/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))

series1.2s

Counts
4 → 12
Calls
4 calls:
356.0ms
(/ 1 (/ (hypot (log base) 0.0) 1))
137.0ms
(fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0))
361.0ms
(* (/ 1 (/ (hypot (log base) 0.0) 1)) (/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1)))
359.0ms
(/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))

simplify88.0ms

Algorithm
egg-herbie
Counts
248 → 248
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
09363408
142422773
250012572

prune617.0ms

Filtered
248 candidates to 134 candidates (54.0%)
Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0b

regimes218.0ms

Accuracy

0% (0.4b remaining)

Error of 0.5b against oracle of 0.1b and baseline of 0.5b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01412
11412

end0.0ms

sample1.6s

Algorithm
intervals
Results
611.0ms7787×body80nan
608.0ms8000×body80valid