Searching the web I have found:
from numpy import *
def simple_integral(func,a,b,dx = 0.001):
return sum(map(lambda x:dx*x, func(arange(a,b,dx))))
simple_integral(sin,0,2*pi)
Or in
http://pylab.sourceforge.net/
quadrature.py
Cheers.
py************************************************ ***@python.org schrieb
am 15.05.2007 04:23:00:
I'm trying to do some integral calculation. I have searched the web, but
haven't found any useful information. Will somebody point me to the
right resources on the web for this job ?
Thanks a lot.
ps. Can numpy be used for this job?*
*
--
http://mail.python.org/mailman/listinfo/python-list