Details

Time bar (total: 4.1s)

sample76.0ms

Algorithm
intervals
Results
29.0ms256×body80valid
29.0ms265×body80nan

simplify13.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: 30.1b

localize18.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (atan2 im re) (log base))
0.3b
(/ (- (* (atan2 im re) (log base)) (* (log (sqrt (+ (* re re) (* im im)))) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
0.5b
(* (log base) (log base))
28.0b
(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:
4.0ms
(* (atan2 im re) (log base))
12.0ms
(/ (- (* (atan2 im re) (log base)) (* (log (sqrt (+ (* re re) (* im im)))) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
4.0ms
(* (log base) (log base))
4.0ms
(sqrt (+ (* re re) (* im im)))

series237.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(* (atan2 im re) (log base))
33.0ms
(/ (- (* (atan2 im re) (log base)) (* (log (sqrt (+ (* re re) (* im im)))) 0.0)) (+ (* (log base) (log base)) (* 0.0 0.0)))
140.0ms
(* (log base) (log base))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify63.0ms

Algorithm
egg-herbie
Counts
129 → 129
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
04661254
119241122
250021081

prune432.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 0.1b

localize6.0ms

Local error

Found 1 expressions with local error:

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

rewrite3.0ms

Algorithm
rewrite-expression-head
Rules
12×times-frac
10×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow1
associate-/r* log-pow
add-exp-log add-cbrt-cube associate-/l*
cbrt-undiv expm1-log1p-u frac-2neg div-exp clear-num log1p-expm1-u div-inv add-log-exp
Counts
1 → 33
Calls
1 calls:
2.0ms
(/ (atan2 im re) (log base))

series31.0ms

Counts
1 → 3
Calls
1 calls:
31.0ms
(/ (atan2 im re) (log base))

simplify51.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 4 (48.0ms)

IterNodesCost
0105215
1272201
2673200
31915198
45002196

prune99.0ms

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 0.0b

localize8.0ms

Local error

Found 2 expressions with local error:

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

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
108×times-frac
60×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
19×pow1 associate-/r*
16×log-pow
15×add-exp-log
add-cbrt-cube
div-exp
associate-/l*
div-inv
cbrt-undiv
expm1-log1p-u rec-exp frac-2neg 1-exp clear-num log1p-expm1-u add-log-exp
pow-flip associate-/r/ inv-pow
Counts
2 → 123
Calls
2 calls:
6.0ms
(/ 1 (/ (log base) (atan2 im re)))
3.0ms
(/ (log base) (atan2 im re))

series90.0ms

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

simplify42.0ms

Algorithm
egg-herbie
Counts
129 → 129
Iterations

Useful iterations: 2 (28.0ms)

IterNodesCost
03391017
11408907
25001806

prune194.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 0b

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt
26×times-frac
21×*-un-lft-identity
20×add-cube-cbrt
16×associate-*l*
15×add-exp-log
12×pow1
add-cbrt-cube
log-pow
div-exp prod-exp associate-/r*
associate-*r* associate-/l* unswap-sqr
cbrt-undiv expm1-log1p-u rec-exp 1-exp cbrt-unprod log1p-expm1-u div-inv add-log-exp
pow-flip frac-2neg pow-prod-down associate-*l/ clear-num *-commutative inv-pow
Counts
2 → 77
Calls
2 calls:
2.0ms
(/ 1 (log base))
10.0ms
(* (/ 1 (log base)) (atan2 im re))

series204.0ms

Counts
2 → 6
Calls
2 calls:
153.0ms
(/ 1 (log base))
51.0ms
(* (/ 1 (log base)) (atan2 im re))

simplify92.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 3 (37.0ms)

IterNodesCost
0205414
1782358
21909323
34191317
45003317

prune130.0ms

Pruning

12 alts after pruning (9 fresh and 3 done)

Merged error: 0b

regimes197.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
063

end0.0ms

sample2.0s

Algorithm
intervals
Results
913.0ms8000×body80valid
766.0ms7750×body80nan