Hi,

I just tried the following in Sympy Live,

a = Integer(10e300)
a*a
100000000000000010500952051040884325415878661871005563386469026563183901107141845888855375804821112590900462906138078215714886901403063702688781015242737775003588508381608255081426313715035434527894909745341950247076736339289993280859129588137156894028824450360604004190215620763638302731984361410625939709810767686156430360442971171310648422643033807071123172876798870920735189695774152261693007436174667258386817039537801780474418562810236222461868084545932215472986213590436821015700837024803434436804935851157278080662231126577922910966922900650502620173747227034491861267997370685309929977282560000

It looks like it supports large integers.

Cheers,

Tim.

On 4 Mar 2014, at 21:06, Ambar Mehrotra wrote:

@Tim,
This link http://docs.sympy.org/latest/tutorial/manipulation.html says that SymPy's Integer class is similar to python's built-in int type. It just
plays well with other sympy classes.
Gmpy is currently not supported on google app engine so I presume it will have issues working with sympy live. Plus the point is creating something that is native to sympy rather than using other libraries, both because sympy already has a class for various data types and people use sympy a lot
for calculations.

On Wednesday, 5 March 2014 06:36:51 UTC+5:30, Tim Lahey wrote:

Hi,

Is there integers that Sympy can't represent? The Integer class is
independent of python int. What would this module add to Sympy?
Alternatively, should it be part of Numpy instead, if it's just
numerics?

I'm just a bit unclear on what you want to do.

Cheers,

Tim.

On 4 Mar 2014, at 18:59, Ambar Mehrotra 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.

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 [email protected] <javascript:>.
To post to this group, send email to [email protected]<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 [email protected].
To post to this group, send email to [email protected].
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/cc383ace-4523-40be-9213-e00b347e2239%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 [email protected].
To post to this group, send email to [email protected].
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/86999404-7909-434B-8D34-C047D480F50C%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to