Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

legendre (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: advanced

Requires: MathScript RT Module

Syntax

y = legendre(n, x)

y = legendre(n, x, type)

Description

Computes the associated Legendre functions of a given degree.

Examples

Inputs

Name Description
n Specifies the degree of the Legendre function. n is a positive integer.
x Specifies the values at which to evaluate the Legendre function. x is a vector of double-precision, floating-point numbers. x must be between -1 and 1.
type Specifies the type of the Legendre function. type is a string that accepts the following values.

'norm' Computes the fully normalized associated Legendre function.
'sch' Computes the Schmidt, semi-normalized, Legendre function.
'unorm' (default) Computes the associated Legendre function.

Outputs

Name Description
y Returns the Legendre function of degree n and order 0, 1, ... , n, evaluated for each element of x. If x is a vector of length m, y is an (n+1)-by-m matrix. The (i, j)-th element of y is the associated Legendre function of degree n and order i evaluated for the j-th element of x.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

Y = legendre(4, [-0.5, 0, 0.5]);


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit