Re: factorial and exponent
- From: "Army1987" <please.ask@xxxxxx>
- Date: Sun, 17 Jun 2007 10:48:51 +0200
"Richard Heathfield" <rjh@xxxxxxxxxxxxxxx> ha scritto nel messaggio
news:Gv6dnQ2-P8SDeunbnZ2dnUVZ8t_inZ2d@xxxxxxxxx
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.
But it is a limit of your computer, not of the library itself.
.
- Follow-Ups:
- Re: factorial and exponent
- From: Richard Heathfield
- Re: factorial and exponent
- From: Flash Gordon
- Re: factorial and exponent
- References:
- factorial and exponent
- From: Thomas
- Re: factorial and exponent
- From: BiGYaN
- Re: factorial and exponent
- From: Richard Heathfield
- factorial and exponent
- Prev by Date: Re: Pointer Ambiguity
- Next by Date: Re: C a dying skill ?
- Previous by thread: Re: factorial and exponent
- Next by thread: Re: factorial and exponent
- Index(es):
Relevant Pages
|