Details

Time bar (total: 7.4s)

sample59.0ms

Algorithm
intervals
Results
19.0ms268×body80nan
17.0ms256×body80valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02716
13316
23316

prune4.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 33.3b

localize25.0ms

Local error

Found 4 expressions with local error:

0.4b
(/ (+ (* (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))
30.9b
(sqrt (+ (* re re) (* im im)))

rewrite75.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:
40.0ms
(/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
14.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
10.0ms
(* (log base) (log base))
8.0ms
(sqrt (+ (* re re) (* im im)))

series360.0ms

Counts
4 → 12
Calls
4 calls:
92.0ms
(/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
86.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
149.0ms
(* (log base) (log base))
33.0ms
(sqrt (+ (* re re) (* im im)))

simplify60.0ms

Algorithm
egg-herbie
Counts
131 → 131
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
04671408
118201268
250011217

prune458.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 0.1b

localize21.0ms

Local error

Found 4 expressions with local error:

0.4b
(/ (+ (* (log (exp (log (hypot re im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
0.4b
(* (log (exp (log (hypot re im)))) (log base))
0.5b
(* (log base) (log base))
5.8b
(exp (log (hypot re im)))

rewrite74.0ms

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt
27×*-un-lft-identity
25×add-cube-cbrt
23×pow1
15×log-prod
14×log-pow
12×associate-*l*
10×add-exp-log add-cbrt-cube
times-frac
exp-prod associate-*r*
distribute-rgt-in distribute-lft-in swap-sqr
expm1-log1p-u log1p-expm1-u add-log-exp
exp-sum associate-/r* associate-/l*
flip3-+ pow-prod-down 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 rem-exp-log
Counts
4 → 120
Calls
4 calls:
40.0ms
(/ (+ (* (log (exp (log (hypot re im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
17.0ms
(* (log (exp (log (hypot re im)))) (log base))
9.0ms
(* (log base) (log base))
3.0ms
(exp (log (hypot re im)))

series381.0ms

Counts
4 → 12
Calls
4 calls:
101.0ms
(/ (+ (* (log (exp (log (hypot re im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
95.0ms
(* (log (exp (log (hypot re im)))) (log base))
144.0ms
(* (log base) (log base))
42.0ms
(exp (log (hypot re im)))

simplify60.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
04221267
116011092
250011044

prune456.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 0.0b

localize21.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (/ (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.3b
(/ (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))
0.5b
(* (log base) (log base))

rewrite49.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:
23.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))))
8.0ms
(/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))
0.0ms
(fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0))
12.0ms
(* (log base) (log base))

series991.0ms

Counts
4 → 12
Calls
4 calls:
393.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))))
320.0ms
(/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))
133.0ms
(fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0))
144.0ms
(* (log base) (log base))

simplify71.0ms

Algorithm
egg-herbie
Counts
161 → 161
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
05522655
120042343
250022317

prune728.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0b

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
67×add-exp-log
32×add-cbrt-cube
30×add-sqr-sqrt
26×times-frac prod-exp
25×div-exp
24×*-un-lft-identity
23×add-cube-cbrt
13×associate-*r*
10×cbrt-undiv 1-exp
cbrt-unprod
pow1 associate-*l*
associate-/l*
rec-exp
expm1-log1p-u associate-/r* log1p-expm1-u div-inv add-log-exp
unswap-sqr
frac-2neg clear-num
frac-times pow-flip associate-*r/ pow-prod-down associate-*l/ un-div-inv *-commutative fma-udef inv-pow
Counts
4 → 127
Calls
4 calls:
5.0ms
(/ 1 (hypot (log base) 0.0))
8.0ms
(/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))
34.0ms
(* (/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1)) (/ 1 (hypot (log base) 0.0)))
0.0ms
(fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0))

series1.1s

Counts
4 → 12
Calls
4 calls:
331.0ms
(/ 1 (hypot (log base) 0.0))
336.0ms
(/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))
328.0ms
(* (/ (fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1)) (/ 1 (hypot (log base) 0.0)))
125.0ms
(fma (log base) (log (hypot re im)) (* (atan2 im re) 0.0))

simplify60.0ms

Algorithm
egg-herbie
Counts
139 → 139
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
04921767
120971440
250011414

prune395.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0b

regimes235.0ms

Accuracy

0% (0.4b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02114
12314
22314

end0.0ms

sample1.6s

Algorithm
intervals
Results
555.0ms7964×body80nan
550.0ms8000×body80valid