Re: Issue 4019 in sympy: divisors could use a 'pairs' flag

2013-10-26 Thread sympy
Updates: Status: WontFix Comment #4 on issue 4019 by smi...@gmail.com: divisors could use a 'pairs' flag http://code.google.com/p/sympy/issues/detail?id=4019 def divisor_pairs(n): Return pairs of divisors of n, (a, b), such that a = b. A generator of pairs (not necessarily in

Re: Issue 4019 in sympy: divisors could use a 'pairs' flag

2013-10-26 Thread sympy
Comment #5 on issue 4019 by asmeu...@gmail.com: divisors could use a 'pairs' flag http://code.google.com/p/sympy/issues/detail?id=4019 Another thing to be considered is if they can be done more efficiently than the niave way. -- You received this message because this project is

Re: Issue 4019 in sympy: divisors could use a 'pairs' flag

2013-09-19 Thread sympy
Comment #3 on issue 4019 by asmeu...@gmail.com: divisors could use a 'pairs' flag http://code.google.com/p/sympy/issues/detail?id=4019 I guess if it's useful enough. (d, n//d) doesn't seem that bad to me, though. Unless you've got a billion divisors, but in that case, I don't think this

Re: Issue 4019 in sympy: divisors could use a 'pairs' flag

2013-09-16 Thread sympy
Comment #2 on issue 4019 by smi...@gmail.com: divisors could use a 'pairs' flag http://code.google.com/p/sympy/issues/detail?id=4019 (modulo the conditional to take the middle element when the list has an odd length) Rather than another flag, should this just be called `divisor_pairs`?

Re: Issue 4019 in sympy: divisors could use a 'pairs' flag

2013-09-15 Thread sympy
Comment #1 on issue 4019 by asmeu...@gmail.com: divisors could use a 'pairs' flag http://code.google.com/p/sympy/issues/detail?id=4019 Or list(zip(d, reversed(d)))[:len(d)//2]. -- You received this message because this project is configured to send all issue notifications to this address.