Eval Single-Variable Array VI

Owning Palette: 1D & 2D Evaluation VIs

Requires: Full Development System

Calculates an array of function values at given points in a given interval by y[i] = f(x[i]) for i = 1, …n, where f is the 1D function given by the user formula.

Details  

 Add to the block diagram  Find on the palette
formula is a string representing the function under investigation. The formula can contain any number of valid variables.
X Values is the given array of input values X[i].
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Y Values is the 1D array of function values of formula at the given points in the array X Values. For example, Y Values = formula (X Values).
error out contains error information. This output provides standard error out functionality.

Eval Single-Variable Array Details

To calculate the formula y = x2 for x = 1, 2, 3, 4, and 5, use the following values for the input arrays:

The resulting Y Values output array is [1, 4, 9, 16, 25].