Details

Time bar (total: 7.2s)

sample50.0ms

Algorithm
intervals
Results
17.0ms256×body80valid
16.0ms253×body80nan

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02716
13316
23316

prune7.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.5b

localize19.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.0b
(sqrt (+ (* re re) (* im im)))

rewrite27.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:
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)))

series369.0ms

Counts
4 → 12
Calls
4 calls:
98.0ms
(/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
90.0ms
(* (log (sqrt (+ (* re re) (* im im)))) (log base))
147.0ms
(* (log base) (log base))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify64.0ms

Algorithm
egg-herbie
Counts
131 → 131
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
04671408
118201268
250011217

prune469.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 0.2b

localize16.0ms

Local error

Found 3 expressions with local error:

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

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt
23×*-un-lft-identity
21×add-cube-cbrt
20×pow1
12×log-prod
add-exp-log times-frac add-cbrt-cube
associate-*r* associate-*l* log-pow
distribute-rgt-in distribute-lft-in swap-sqr
expm1-log1p-u associate-/r* log1p-expm1-u associate-/l* add-log-exp
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
Counts
3 → 99
Calls
3 calls:
9.0ms
(/ (+ (* (log (hypot re im)) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
8.0ms
(* (log (hypot re im)) (log base))
5.0ms
(* (log base) (log base))

series353.0ms

Counts
3 → 9
Calls
3 calls:
106.0ms
(/ (+ (* (log (hypot re im)) (log base)) (* (atan2 im re) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
100.0ms
(* (log (hypot re im)) (log base))
147.0ms
(* (log base) (log base))

simplify51.0ms

Algorithm
egg-herbie
Counts
108 → 108
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
03771035
11559925
25002895

prune368.0ms

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 0b

localize20.0ms

Local error

Found 4 expressions with local error:

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

rewrite29.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:
11.0ms
(/ (/ (fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1)) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0))))
4.0ms
(/ (fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))
1.0ms
(fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0))
5.0ms
(* (log base) (log base))

series589.0ms

Counts
4 → 12
Calls
4 calls:
189.0ms
(/ (/ (fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1)) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0))))
146.0ms
(/ (fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0)) (* (hypot (log base) 0.0) 1))
104.0ms
(fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0))
148.0ms
(* (log base) (log base))

simplify198.0ms

Algorithm
egg-herbie
Counts
161 → 161
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
05262617
118932303
250012279

prune576.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 0b

localize23.0ms

Local error

Found 4 expressions with local error:

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

rewrite60.0ms

Algorithm
rewrite-expression-head
Rules
735×times-frac
355×add-sqr-sqrt *-un-lft-identity
353×add-cube-cbrt
135×sqrt-prod
47×associate-/l*
30×div-inv
27×add-exp-log
17×pow1 add-cbrt-cube
15×div-exp
associate-/r* associate-/r/
cbrt-undiv
log-prod swap-sqr log-pow
expm1-log1p-u associate-*r* associate-*l* log1p-expm1-u add-log-exp
distribute-rgt-in distribute-lft-in
rec-exp frac-2neg sqrt-div 1-exp clear-num
pow2 flip3-+ pow-plus pow-prod-down prod-exp pow-sqr *-commutative pow-prod-up cbrt-unprod flip-+ fma-udef associate-/l/ unswap-sqr
Counts
4 → 416
Calls
4 calls:
19.0ms
(/ (/ 1 (/ (hypot (log base) 0.0) (fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0)))) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0))))
3.0ms
(/ (hypot (log base) 0.0) (fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0)))
1.0ms
(fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0))
5.0ms
(* (log base) (log base))

series1.0s

Counts
4 → 12
Calls
4 calls:
416.0ms
(/ (/ 1 (/ (hypot (log base) 0.0) (fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0)))) (sqrt (+ (* (log base) (log base)) (* 0.0 0.0))))
374.0ms
(/ (hypot (log base) 0.0) (fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0)))
108.0ms
(fma (log (hypot re im)) (log base) (* (atan2 im re) 0.0))
143.0ms
(* (log base) (log base))

simplify121.0ms

Algorithm
egg-herbie
Counts
428 → 428
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
0157211552
150019657

prune1.1s

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0b

regimes235.0ms

Accuracy

0% (0.4b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02418
12418

end0.0ms

sample1.4s

Algorithm
intervals
Results
537.0ms8000×body80valid
520.0ms8212×body80nan