Details

Time bar (total: 18.2s)

sample118.0ms

Algorithm
intervals
Results
45.0ms256×body80valid
38.0ms305×body80nan

simplify95.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
01828
13122
25222
36822
48822
510022
610422
done10422

prune9.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.4b

localize24.0ms

Local error

Found 4 expressions with local error:

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

rewrite61.0ms

Algorithm
rewrite-expression-head
Rules
18×add-sqr-sqrt
16×add-cube-cbrt *-un-lft-identity
times-frac
add-exp-log add-cbrt-cube
pow1
log-prod
expm1-log1p-u associate-*r* log1p-expm1-u add-log-exp
distribute-rgt-in distribute-lft-in associate-*l* associate-/r* associate-/l*
associate-/l/
cbrt-undiv hypot-udef flip3-- frac-2neg div-sub div-exp pow-prod-down prod-exp clear-num log-pow *-commutative flip-- cbrt-unprod fma-udef div-inv unswap-sqr
Counts
4 → 79
Calls
4 calls:
0.0ms
(hypot re im)
10.0ms
(* (atan2 im re) (log base))
48.0ms
(/ (- (* (atan2 im re) (log base)) (* 0.0 (log (hypot re im)))) (fma (log base) (log base) (* 0.0 0.0)))
1.0ms
(fma (log base) (log base) (* 0.0 0.0))

series614.0ms

Counts
4 → 12
Calls
4 calls:
75.0ms
(hypot re im)
44.0ms
(* (atan2 im re) (log base))
115.0ms
(/ (- (* (atan2 im re) (log base)) (* 0.0 (log (hypot re im)))) (fma (log base) (log base) (* 0.0 0.0)))
380.0ms
(fma (log base) (log base) (* 0.0 0.0))

simplify2.3s

Counts
91 → 91
Iterations

Useful iterations: done (2.3s)

IterNodesCost
01531628
13081592
29261401
332281342
done50001341

prune536.0ms

Pruning

15 alts after pruning (15 fresh and 0 done)

Merged error: 0.0b

localize7.0ms

Local error

Found 1 expressions with local error:

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

rewrite6.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:
5.0ms
(/ (atan2 im re) (log base))

series41.0ms

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

simplify2.8s

Counts
36 → 36
Iterations

Useful iterations: 4 (299.0ms)

IterNodesCost
064394
1105375
2207351
3385348
4680344
52117344
done5000344

prune169.0ms

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 0b

localize21.0ms

Local error

Found 3 expressions with local error:

0.2b
(expm1 (/ (atan2 im re) (log base)))
0.2b
(log1p (expm1 (/ (atan2 im re) (log base))))
0.3b
(/ (atan2 im re) (log base))

rewrite9.0ms

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

series215.0ms

Counts
3 → 9
Calls
3 calls:
70.0ms
(expm1 (/ (atan2 im re) (log base)))
102.0ms
(log1p (expm1 (/ (atan2 im re) (log base))))
44.0ms
(/ (atan2 im re) (log base))

simplify2.1s

Counts
64 → 64
Iterations

Useful iterations: 4 (461.0ms)

IterNodesCost
088677
1139622
2277572
3538561
41203549
done5000549

prune254.0ms

Pruning

13 alts after pruning (12 fresh and 1 done)

Merged error: 0b

localize13.0ms

Local error

Found 2 expressions with local error:

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

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt
26×times-frac
21×*-un-lft-identity
20×add-cube-cbrt
16×associate-*r*
15×add-exp-log
12×pow1
add-cbrt-cube
log-pow
div-exp prod-exp associate-/r*
associate-*l* 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 associate-*r/ pow-prod-down clear-num un-div-inv *-commutative inv-pow
Counts
2 → 78
Calls
2 calls:
30.0ms
(* (atan2 im re) (/ 1 (log base)))
9.0ms
(/ 1 (log base))

series247.0ms

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

simplify3.9s

Counts
84 → 84
Iterations

Useful iterations: 4 (1.2s)

IterNodesCost
0104789
1201614
2435546
3866540
41647534
done5001534

prune177.0ms

Pruning

13 alts after pruning (11 fresh and 2 done)

Merged error: 0b

regimes381.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
088
done88

end0.0ms

sample4.1s

Algorithm
intervals
Results
1.9s8000×body80valid
1.4s8062×body80nan