Re: Calculate Big Number

Discussion in 'Python' started by Tomasz Rola, Jan 8, 2013.

  1. Tomasz Rola

    Tomasz Rola Guest

    On Tue, 8 Jan 2013, Nac Temha wrote:

    > Hello,
    > How to *quickly* calculate large numbers. For example
    > >>> (10**25) * (2**50)

    > 11258999068426240000000000000000000000000L
    >


    Um, Karatsuba multiplication?

    http://en.wikipedia.org/wiki/Karatsuba_algorithm

    Or see what GMP folks are doing:

    http://en.wikipedia.org/wiki/GNU_Multi-Precision_Library

    Regards,
    Tomasz Rola

    --
    ** A C programmer asked whether computer had Buddha's nature. **
    ** As the answer, master did "rm -rif" on the programmer's home **
    ** directory. And then the C programmer became enlightened... **
    ** **
    ** Tomasz Rola mailto: **
     
    Tomasz Rola, Jan 8, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shaguf
    Replies:
    0
    Views:
    560
    Shaguf
    Dec 24, 2008
  2. Shaguf
    Replies:
    0
    Views:
    506
    Shaguf
    Dec 26, 2008
  3. Shaguf
    Replies:
    0
    Views:
    277
    Shaguf
    Dec 26, 2008
  4. Shaguf
    Replies:
    0
    Views:
    257
    Shaguf
    Dec 24, 2008
  5. Nac Temha

    Calculate Big Number

    Nac Temha, Jan 8, 2013, in forum: Python
    Replies:
    4
    Views:
    96
Loading...

Share This Page