28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

m m<br />

Nn ( x)<br />

= ( – 1)<br />

legendre<br />

m<br />

Description P = legendre(n,X) computes the associated Legendre functions Pn ( x)<br />

of<br />

degree n and order m = 0,1,...,n, evaluated for each element of X. Argument<br />

n must be a scalar integer, and X must contain real values in the domain<br />

– 1 ≤ x ≤ 1 .<br />

If X is a vector, then P is an (n+1)-by-q matrix, where q = length(X). Each<br />

element P(m+1,i) corresponds to the associated Legendre function of degree n<br />

and order m evaluated at X(i).<br />

In general, the returned array P has one more dimension than X, and each<br />

element P(m+1,i,j,k,...) contains the associated Legendre function of<br />

degree n and order m evaluated at X(i,j,k,...). Note that the first row of P is<br />

the Legendre polynomial evaluated at X, i.e., the case where m = 0.<br />

S = legendre(n,X,'sch') computes the Schmidt seminormalized associated<br />

m<br />

Legendre functions Sn ( x)<br />

.<br />

N = legendre(n,X,'norm') computes the fully normalized associated<br />

m<br />

Legendre functions Nn ( x)<br />

.<br />

Examples Example 1. The statement legendre(2,0:0.1:0.2) returns the matrix<br />

Example 2. Given,<br />

X = rand(2,4,5);<br />

n = 2;<br />

P = legendre(n,X)<br />

n 1 ⎛ + -- ⎞( n – m)!<br />

⎝ 2⎠<br />

m<br />

---------------------------------------- P<br />

( n + m)!<br />

n ( x)<br />

x = 0 x = 0.1 x = 0.2<br />

m = 0 -0.5000 -0.4850 -0.4400<br />

m = 1 0 -0.2985 -0.5879<br />

m = 2 3.0000 2.9700 2.8800<br />

2-1299

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

Saved successfully!

Ooh no, something went wrong!