By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,198 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

Antwort: How to calculate definite integral with python

P: n/a
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
May 15 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.