Details

Time bar (total: 4.1s)

sample55.0ms

Algorithm
intervals
Results
20.0ms245×body80nan
18.0ms256×body80valid

simplify14.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03116
15216
26816
38816
410216
510616
610616

prune4.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 33.8b

localize20.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (- (* (atan2 im re) (log base)) (* (log (sqrt (+ (* re re) (* im im)))) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
0.4b
(* (atan2 im re) (log base))
0.6b
(* (log base) (log base))
31.6b
(sqrt (+ (* re re) (* im im)))

rewrite27.0ms

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

series258.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(/ (- (* (atan2 im re) (log base)) (* (log (sqrt (+ (* re re) (* im im)))) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
28.0ms
(* (atan2 im re) (log base))
153.0ms
(* (log base) (log base))
41.0ms
(sqrt (+ (* re re) (* im im)))

simplify61.0ms

Algorithm
egg-herbie
Counts
129 → 129
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
04661254
119241122
250011081

prune480.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.1b

localize13.0ms

Local error

Found 2 expressions with local error:

0.0b
(log (/ 1 base))
0.3b
(/ (atan2 im re) (log (/ 1 base)))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
27×times-frac
20×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
15×log-pow
13×log-prod
12×pow1
add-exp-log
associate-/r*
pow-flip inv-pow
rem-log-exp add-cbrt-cube
div-exp associate-/l*
expm1-log1p-u log1p-expm1-u div-inv add-log-exp
cbrt-undiv log-div rec-exp frac-2neg 1-exp log-rec clear-num
Counts
2 → 72
Calls
2 calls:
3.0ms
(log (/ 1 base))
4.0ms
(/ (atan2 im re) (log (/ 1 base)))

series158.0ms

Counts
2 → 6
Calls
2 calls:
123.0ms
(log (/ 1 base))
36.0ms
(/ (atan2 im re) (log (/ 1 base)))

simplify106.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (35.0ms)

IterNodesCost
0201449
1540418
21522402
33981385
45002385

prune188.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 0.0b

localize9.0ms

Local error

Found 2 expressions with local error:

0.3b
(/ -1 (log base))
0.3b
(* (atan2 im re) (/ -1 (log base)))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt times-frac
20×add-cube-cbrt *-un-lft-identity
16×associate-*r*
11×pow1
add-exp-log add-cbrt-cube
log-pow
associate-/r*
associate-*l* associate-/l*
cbrt-undiv expm1-log1p-u div-exp prod-exp cbrt-unprod log1p-expm1-u div-inv add-log-exp unswap-sqr
frac-2neg associate-*r/ pow-prod-down clear-num *-commutative
Counts
2 → 70
Calls
2 calls:
3.0ms
(/ -1 (log base))
8.0ms
(* (atan2 im re) (/ -1 (log base)))

series218.0ms

Counts
2 → 6
Calls
2 calls:
173.0ms
(/ -1 (log base))
45.0ms
(* (atan2 im re) (/ -1 (log base)))

simplify41.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0209396
11008363
25001323

prune193.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(log (/ 1 base))
0.3b
(/ 1 (/ (log (/ 1 base)) (atan2 im re)))
0.3b
(/ (log (/ 1 base)) (atan2 im re))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
165×times-frac
84×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
51×log-pow
38×pow1
25×associate-/r*
21×add-exp-log
18×pow-flip inv-pow
13×log-prod
10×div-exp add-cbrt-cube
associate-/l*
div-inv
cbrt-undiv rem-log-exp
expm1-log1p-u rec-exp 1-exp log1p-expm1-u add-log-exp
log-div frac-2neg log-rec clear-num
div-sub distribute-frac-neg associate-/r/
Counts
3 → 188
Calls
3 calls:
3.0ms
(log (/ 1 base))
8.0ms
(/ 1 (/ (log (/ 1 base)) (atan2 im re)))
6.0ms
(/ (log (/ 1 base)) (atan2 im re))

series219.0ms

Counts
3 → 9
Calls
3 calls:
122.0ms
(log (/ 1 base))
49.0ms
(/ 1 (/ (log (/ 1 base)) (atan2 im re)))
47.0ms
(/ (log (/ 1 base)) (atan2 im re))

simplify54.0ms

Algorithm
egg-herbie
Counts
197 → 197
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
05011610
120071420
250011268

prune314.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0b

regimes188.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0125
1185
2205
3205

end0.0ms

sample1.5s

Algorithm
intervals
Results
572.0ms8000×body80valid
532.0ms7800×body80nan