Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

gaussian_binomial is faster, for one:

sage: %timeit a=q_analogues.q_binomial(20,10)
25 loops, best of 3: 8.45 ms per loop
sage: %timeit a=gaussian_binomial(20,10)
625 loops, best of 3: 1.52 ms per loop

Looking at the code makes me think that gaussian_binomial is strictly better than q_binomial, and the latter should be made an alias for the former. But perhaps I'm missing something.

click to hide/show revision 2
No.2 Revision

gaussian_binomial is faster, for one:

sage: %timeit a=q_analogues.q_binomial(20,10)
25 loops, best of 3: 8.45 ms per loop
sage: %timeit a=gaussian_binomial(20,10)
625 loops, best of 3: 1.52 ms per loop

Looking at the code makes me think that gaussian_binomial gaussian_binomial is strictly better than q_binomial, q_binomial, and the latter should be made an alias for the former. But perhaps I'm missing something.