[Tutor] cube root
Chris Fuller
cfuller084 at thinkingplanet.net
Tue Jan 20 02:07:38 CET 2009
On Monday 19 January 2009 18:56, col speed wrote:
> Wow! I seem to have caused a great deal of comments!
> I actually am looking to see if a number is a "perfect cube". I will try
> out all the suggestions.
> Thanks a lot.
> Colin
The reliable way to do this is to store a list of cubes. If the number you
want to check is not in your list, then compute more cubes until you exceed
that number. Unless you are dealing with absurdly huge numbers, this won't
be very onerous on computing time.
Cheers
More information about the Tutor
mailing list