[Tutor] Python tutorials
Moshe Zadka
Moshe Zadka <mzadka@geocities.com>
Tue, 1 Feb 2000 04:24:06 +0200 (IST)
On Mon, 31 Jan 2000, Oscar Chavez wrote:
> Most tutorials' examples are based in operations with strings and
> text in general. Are there any Python tutorials that stress its math
> capabilities? In particular, I have noticed that there is a limit on
> the integers that Python can handle, but I don't know exactly to what
> extent this can be modified.
To any extent, by using long integers.
Try the following function:
def fact(n):
ret = 1L # a Python long integer is a bignum
for i in range(1, n+1):
ret = ret * i
return ret
> I would like to do operations with
> matrices, factoring integers and floating point operations. Where
> should I look for help on these matters?
The Numeric module, which is available now somewhere on sourceforge.net.
--
Moshe Zadka <mzadka@geocities.com>.
INTERNET: Learn what you know.
Share what you don't.