home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!news.th-darmstadt.de!news.uni-mainz.de!usenet
- From: pom@anke.imsd.uni-mainz.DE (Prof. Dr. Klaus Pommerening)
- Subject: Re: POWER OF LARGE NUMBERS
- Message-ID: <PM15Q5H@minnie.zdv.uni-mainz.de>
- Sender: usenet@minnie.zdv.uni-mainz.de (USENET News System)
- Nntp-Posting-Host: anke.imsd.uni-mainz.de
- Organization: Johannes Gutenberg Universitaet Mainz
- References: <1992Aug12.135106.12924@cs.uow.edu.au>
- Date: Thu, 13 Aug 1992 10:36:30 GMT
- Lines: 18
-
- In article <1992Aug12.135106.12924@cs.uow.edu.au> u8705957@cs.uow.edu.au
- (Hitesh Sanghvi) writes:
- > Hello there;
- > Does any one know how to raise power of possibly 100 digits
- > to possibly 100 digits. Any algorithm or code will be appriciated.
- > Example
- > (1234367463746464647464...up to 100 digit)**(647254627463048736...up to 100
- digit)
-
- First of all you need routines for doing big number calculation, e.g.
- GNU-mp. Then you need a book on algorithms that explain the binary
- method of exponentiation, e.g. KNUTH, The Art of Computer Programming,
- Vol. 2 (see the section 'Evaluation of powers').
- --
- Prof. Dr. Klaus Pommerening
- Institut fuer Medizinische Statistik und Dokumentation
- der Johannes-Gutenberg-Universitaet
- Obere Zahlbacher Strasse 69, W-6500 Mainz
-