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.

Returns<br />

nff : float or int<br />

References<br />

[R39]<br />

Double factorial of n, as an int or a float depending on exact.<br />

factorialk(n, k, exact=1)<br />

n(!!...!) = multifactorial of order k k times<br />

comb(N, k, exact=0)<br />

Combinations of N things taken k at a time.<br />

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

If exact==0, then floating point precision is used, otherwise exact long integer is computed.<br />

Notes:<br />

• Array arguments accepted only for exact=0 case.<br />

• If k > N, N < 0, or k < 0, then a 0 is returned.<br />

central_diff_weights(Np, ndiv=1)<br />

Return weights for an Np-point central derivative of order ndiv assuming equally-spaced function points.<br />

If weights are in the vector w, then derivative is w[0] * f(x-ho*dx) + ... + w[-1] * f(x+h0*dx)<br />

Can be inaccurate for large number of points.<br />

derivative(func, x0, dx=1.0, n=1, args=(), order=3)<br />

Given a function, use a central difference formula with spacing dx to compute the nth derivative at x0.<br />

order is the number of points to use and must be odd.<br />

Warning: Decreasing the step size too small can result in round-off error.<br />

pade(an, m)<br />

Given Taylor series coefficients in an, return a Pade approximation to the function as the ratio of two polynomials<br />

p / q where the order of q is m.<br />

3.10 Multi-dimensional image processing (<strong>scipy</strong>.ndimage)<br />

Functions for multi-dimensional image processing.<br />

3.10. Multi-dimensional image processing (<strong>scipy</strong>.ndimage) 265

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

Saved successfully!

Ooh no, something went wrong!