Calculates exactly one function value based on a given formula.


icon

Inputs/Outputs

  • cstr.png formula

    formula is a string representing the formula of n independent Variables. The formula can contain any number of valid variables.

  • c1ddbl.png X Values

    X Values is an array of x values corresponding to the n Variables.

  • c1dstr.png Variables

    Variables is an array of strings representing the n independent variables of the given formula. There is a one-to-one relation between Variables and X Values.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • idbl.png y value

    y value is the value of formula(X Values).

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • The VI calculates the function using the following equation.

    y = f(x1, x2, …, xn)

    The following inputs result in y value 3.00:

    • formula: 3*x1 + 4*x2 + x3^2
    • X Values: [1, -1, 2]
    • Variables: [x1, x2, x3]
    Note This VI calculates only one value of a given n dimension function. To calculate a collection of function values, use the Eval Multi-Variable Array, Parse Formula String, and Eval Parsed Formula String VIs.