Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

polyval (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the polynomials class.

Syntax

c = polyval(a, b)

Description

Evaluates a polynomial at values you specify. This function works element-wise for matrices.

Examples

Inputs

Name Description
a Specifies the coefficients in descending order of power of the polynomial you want to evaluate. a is a vector.
b Specifies the values at which you want to evaluate a. b is a matrix.

Outputs

Name Description
c Returns the evaluated values of a according to the following equation: c = a[1]*b^n+ ... +a[n]*b+a[n+1]*I, where n is the degree of a and I is the identity matrix. c is a matrix of the same size as a.

Examples

A = [1, 1, 1]
B = [1, 2; 3, 4]
C = polyval(A, B)

Related Topics

polyvalm


Resources


 

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