Antwort: How to calculate definite integral with python

2007-05-15 Thread Roland Puntaier
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. [EMAIL PROTECTED] schrieb am 15.05.2007 04:23:00:

Re: How to calculate definite integral with python

2007-05-15 Thread J. Robertson
[EMAIL PROTECTED] wrote: > 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?* > * It can be done wi

How to calculate definite integral with python

2007-05-14 Thread [EMAIL PROTECTED]
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