Hi,

Sympy's Integer class is not the same as a python int. Is there something that the Integer class or gmpy through mpmath can't do?

Cheers,

Tim.

On 4 Mar 2014, at 20:37, Ambar Mehrotra wrote:

@Tim

Even in python an integer is automatically converted to long type but it cannot go further. And as sympy has a numbers class for other data types as well this can also be included. Wanted to build something similar to this
http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html.

On Wednesday, 5 March 2014 06:38:47 UTC+5:30, Ondřej Čertík wrote:

On Tue, Mar 4, 2014 at 4:59 PM, Ambar Mehrotra <ambar....@gmail.com<javascript:>>
wrote:
Hi,

I am Ambar Mehrotra and undergraduate from BITS Pilani, India pursuing
Information Systems.
I like to play with numbers and have a descent experience with python.

I would like to suggest the addition of a 'BigInteger' module in the
sympy.core.numbers class.
Currently there is no convenient way of storing and working with very
large
numbers in python. I came across this problem while solving a question
of
Google Code Jam where python ran out of memory while doing a long
calculation.
I would like to take user input in form of a string and then use
algorithms
to do some basic math operations using numpy to make things faster.

Please tell me if this idea is worth considering and guide me further if
you
like it.

SymPy can also use GMP through gmpy through mpmath, so that should be
able to handle any large integers.

Can you post your code where you need large integers in Python that
runs out of memory?

Ondrej


with regards,
Ambar Mehrotra.

--
You received this message because you are subscribed to the Google
Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to sympy+un...@googlegroups.com <javascript:>.
To post to this group, send email to sy...@googlegroups.com<javascript:>.

Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit

https://groups.google.com/d/msgid/sympy/7ec24c8c-02d0-4e02-afb4-ca35a75207f5%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/7312fed9-2752-4de0-a9c1-9ddbd8b08767%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/36D3C790-11CC-449D-BB38-29FED3287B6A%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to