Re: factorial and exponent



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.
.



Relevant Pages

  • Re: factorial and exponent
    ... What's the technique? ... Raise A to the power B, storing the result in A. Now raise B to the ...
    (comp.lang.c)
  • Re: factorial and exponent
    ... It will enable you to do "Arithmetic without Limitations"!! ... Raise A to the power B, storing the result in A. Now raise B to the ...
    (comp.lang.c)
  • Re: Congruence with division
    ... If I can make the exponent a power of 2 then ... the fastest piece of software out there) will allow you to raise one ... hundred digit number by another hundred digit number mod a third ...
    (sci.math)
  • Re: Irrational numbers questions
    ... which means what power "a" must I raise the number ... Han de Bruijn ...
    (sci.math)
  • Re: HPs mis-calculate fractional exponents?
    ... Nothing at all in the second quadrant, ... I do 5th-root of -2, and then raise that to the fourth power, it works ... This arises because the logarithm is itself ...
    (comp.sys.hp48)