Re: factorial and exponent
- From: Johan Bengtsson <qwerty_42@xxxxxxxxxxx>
- Date: Sun, 17 Jun 2007 18:27:15 GMT
Richard Heathfield wrote:
Army1987 said:Of course there are limits, but I don't agree that they necessarily have to be in the library. size_t is one limit, but if run on for example a windows box it will not be *the* limit. A win32 application is not allowed to allocate more than 2Gbytes of memory (and that's typically half of what size_t allows for), unless you buy a more expensive version of windows where that limit is raised to 3Gbytes."Richard Heathfield" <rjh@xxxxxxxxxxxxxxx> ha scritto nel messaggio<snip>
news:Gv6dnQ2-P8SDeunbnZ2dnUVZ8t_inZ2d@xxxxxxxxx
BiGYaN said:But it is a limit of your computer, not of the library itself.Use GMP library found in http://gmplib.org/Nonsense.
It will enable you to do "Arithmetic without Limitations" !!
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.
Nevertheless, it is a limit, and therefore the library *cannot* 'enable you to do "Arithmetic without Limitations"', and therefore BiGYaN's statement is nonsense.
Incidentally, you've just emerged from a 30-day spell in my sin bin. I hope I won't have to chuck you back in there.
It would also be possible for the mathematics library to internally use something else than a standard C pointer and internally use paging towards the system's hard disk or some internet based server or whatever (magnetic tape?) allowing for a *much* higher limit. Oh well the limit will still be there somewhere, but the calculation time will probably be the limiting factor instead...
No, I don't seriously suggest using magnetic tape as a paging media... but it would be possible!
.
- Follow-Ups:
- Re: factorial and exponent
- From: Richard Heathfield
- Re: factorial and exponent
- References:
- factorial and exponent
- From: Thomas
- Re: factorial and exponent
- From: BiGYaN
- Re: factorial and exponent
- From: Richard Heathfield
- Re: factorial and exponent
- From: Army1987
- Re: factorial and exponent
- From: Richard Heathfield
- factorial and exponent
- Prev by Date: Re: Pointer Ambiguity
- Next by Date: Re: factorial and exponent
- Previous by thread: Re: factorial and exponent
- Next by thread: Re: factorial and exponent
- Index(es):
Relevant Pages
|