468,107 Members | 1,321 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Antwort: How to calculate definite integral with python

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
0 2614

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Holger Joukl | last post: by
reply views Thread by Holger Joukl | last post: by
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
1 post views Thread by fdu.xiaojf | last post: by
2 posts views Thread by arslanburney | last post: by
reply views Thread by Luke Kenneth Casson Leighton | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.