Re: factorial and exponent
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Sun, 17 Jun 2007 07:50:22 +0000
BiGYaN said:
On Jun 16, 5:02 pm, Thomas <mynameisthomasander...@xxxxxxxxx> wrote:
I want to calculate the value of 126 raise to the power 126 in turbo
C.
I've checked it with unsigned long int but it doesn't help.
So how could one calculate the value of such big numbers?
What's the technique?
Use GMP library found in http://gmplib.org/
It will enable you to do "Arithmetic without Limitations" !!
Nonsense.
Consider an integer greater than or equal to 2. Call it A. Consider
another integer greater than or equal to 2. Call it B.
Raise A to the power B, storing the result in A. Now raise B to the
power A, storing the result in B. If you repeat this often enough, you
*will* hit a limit, no matter what numerical library you use.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
.
- Follow-Ups:
- Re: factorial and exponent
- From: BiGYaN
- Re: factorial and exponent
- From: Army1987
- Re: factorial and exponent
- References:
- factorial and exponent
- From: Thomas
- Re: factorial and exponent
- From: BiGYaN
- factorial and exponent
- Prev by Date: Re: C a dying skill ?
- Next by Date: Re: Struct compares/copies
- Previous by thread: Re: factorial and exponent
- Next by thread: Re: factorial and exponent
- Index(es):
Relevant Pages
|