15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SciPy Reference Guide, Release 0.8.dev<br />

3.4 Integration and ODEs (<strong>scipy</strong>.integrate)<br />

3.4.1 Integrating functions, given function object<br />

quad(func, a, b[, args, full_output, ...]) Compute a definite integral.<br />

dblquad(func, a, b, gfun, hfun[, args, Compute the double integral of func2d(y,x) from x=a..b and<br />

...])<br />

y=gfun(x)..hfun(x).<br />

tplquad(func, a, b, gfun, hfun, qfun,<br />

rfun)<br />

Compute a triple (definite) integral.<br />

fixed_quad(func, a, b[, args, n]) Compute a definite integral using fixed-order Gaussian quadrature.<br />

quadrature(func, a, b[, args, tol, Compute a definite integral using fixed-tolerance Gaussian<br />

maxiter, ...])<br />

quadrature.<br />

romberg(function, a, b[, args, tol, show,<br />

...])<br />

Romberg integration of a callable function or method.<br />

quad(func, a, b, args=(), full_output=0, epsabs=1.4899999999999999e-08, epsrel=1.4899999999999999e-08,<br />

limit=50, points=None, weight=None, wvar=None, wopts=None, maxp1=50, limlst=50)<br />

Compute a definite integral.<br />

Integrate func from a to b (possibly infinite interval) using a technique from the Fortran library QUADPACK.<br />

Run <strong>scipy</strong>.integrate.quad_explain() for more information on the more esoteric inputs and outputs.<br />

Parameters<br />

func : function<br />

a<br />

b<br />

Returns<br />

y : float<br />

a Python function or method to integrate.<br />

[float] lower limit of integration (use -<strong>scipy</strong>.integrate.Inf for -infinity).<br />

[float] upper limit of integration (use <strong>scipy</strong>.integrate.Inf for +infinity).<br />

full_output :<br />

non-zero to return a dictionary of integration information. If non-zero, warning<br />

messages are also suppressed and the message is appended to the output tuple.<br />

the integral of func from a to b.<br />

abserr<br />

[float] an estimate of the absolute error in the result.<br />

infodict<br />

[dict] a dictionary containing additional information. Run<br />

<strong>scipy</strong>.integrate.quad_explain() for more information.<br />

message :<br />

a convergence message.<br />

explain :<br />

appended only with ‘cos’ or ‘sin’ weighting and infinite integration limits, it<br />

contains an explanation of the codes in infodict[’ierlst’]<br />

178 Chapter 3. Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!