468,288 Members | 1,985 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,288 developers. It's quick & easy.

How to calculate definite integral with python

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
1 8665
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.

Similar topics

41 posts views Thread by Saurabh Saxena | last post: by
96 posts views Thread by david ullua | last post: by
13 posts views Thread by In a little while | last post: by
reply views Thread by Roland Puntaier | last post: by
2 posts views Thread by Ranganath | last post: by
7 posts views Thread by Hendrik Schober | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.