-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let factorint() act as an iterator #6919
Comments
Original comment: http://code.google.com/p/sympy/issues/detail?id=3820#c1 |
Original comment: http://code.google.com/p/sympy/issues/detail?id=3820#c2 |
|
I checked out it's Pollard rho algorithm for finding factors. I think to put this feature with factorint() but how this should be because I am bit confused by your issue @asmeurer . Is it like checking a number as a factor (which already exists, so this may be not). Or just gives a condition and we have to give the solution as bool or as a number, is it? |
|
@vivonk I recommend reading up on how iterators work in Python. |
|
I would like to take up this issue.Please guide me in solving this as I am new to open source contributions |
|
I would like to take this up if the issue is still open. |
|
I would like to work on this issue. If I am not understanding the issue incorrectly @asmeurer , the request is for factorint() to act as a factor generator to output factors on the go. Please guide me in solving this issue. |
|
Right now, |
|
I'm unmarking the |
(cherry picked from commit 5cb1098)
(cherry picked from commit aa5ac90)
|
We would need to make the internals operate as generators. I would suggest making |
I haven't looked into the internals but do you mean that it would literally return dicts with a single key? Why would that be better than a tuple |
|
My thinking is that it would be easy to merge those into a single dictionary and also to use the same code to manipulate them as the full case. Although tuples would work as well. |
Original issue for #6919: http://code.google.com/p/sympy/issues/detail?id=3820
Original author: https://code.google.com/u/asmeurer@gmail.com/
The text was updated successfully, but these errors were encountered: