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

How to calculate definite integral with python

P: n/a
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?*
*
May 15 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
fd********@gmail.com 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 with scipy (see
http://www.scipy.org/doc/api_docs/scipy.integrate.html )
for example:
>>import scipy.integrate
func = lambda x: x**2
scipy.integrate.quadrature(func, 0.0, 1.0)
Took 4 points.
(0.333333333333, 0.0)
May 15 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.