home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!wupost!uwm.edu!zazen!doug.cae.wisc.edu!umn.edu!noc.msc.net!news.stolaf.edu!news.stolaf.edu!quanstro
- From: quanstro@mari.StOlaf.edu (goon)
- Subject: Re: POWER OF LARGE NUMBERS
- In-Reply-To: dave@cs.arizona.edu's message of 16 Aug 92 05:21:57 GMT
- Message-ID: <QUANSTRO.92Aug16132245@mari.StOlaf.edu>
- Sender: news@news.stolaf.edu
- Organization: St. Olaf College, Northfield, MN USA
- References: <1992Aug12.135106.12924@cs.uow.edu.au>
- <thompson.713734408@daphne.socsci.umn.edu>
- <1992Aug16.052157.1991@organpipe.uug.arizona.edu>
- Date: 16 Aug 92 13:22:45
- Lines: 31
-
- In article <1992Aug16.052157.1991@organpipe.uug.arizona.edu> dave@cs.arizona.edu (Dave Schaumann) writes:
-
- In article <thompson.713734408@daphne.socsci.umn.edu>, thompson@atlas (T. Scott Thompson) writes:
- >u8705957@cs.uow.edu.au (Hitesh Sanghvi) writes:
- >
- >> Does any one know how to raise power of possibly 100 digits
- >>to possibly 100 digits. Any algorithm or code will be appriciated.
- >
- >Is there any hope of solving this?
-
- Only if you're willing to give up most of the significant digits.
- But it's certainly within the bounds of imagination to have a
- program that could do something like
-
- google_t a, b ;
-
- a = make_google( 10, make_int(100) ) ;
- b = google_mult( a, a ) ;
-
- At this point, the value of `b' could be expressed as
-
- make_google( 10, make_google( 10, make_int(10) ) ) ;
-
- Of course, using C++ would make certain aspects of this easier...
-
-
- You just contradicted yourself. It is possible. It just takes more
- memory and more programming (you can't expect the hardware to handle
- this sort of case). Check out the man page for mp (a set of arbitrary
- precision arith. functions) if you are on a UNIX system. There is also
- a GNU version of these functins.
-