nD Nonlinear System Solver (Formula) VI
- Updated2025-07-30
- 4 minute(s) read
Determines a set of solutions of a nonlinear system of equations in n dimensions beginning with a randomly chosen start point in n dimensions. You must manually select the polymorphic instance to use.

Inputs/Outputs
accuracy
—
accuracy controls the accuracy of the zero determination. The default is 1.00E-8, which specifies the maximum deviation of the calculated solution from the actual solution.
number of trials
—
number of trials is the elaborate number of randomly chosen start points. The algorithm starts with these points and looks for zeros close to these points. The default is 5.
h
—
h is a small distance to calculate derivatives. The default is 1E-8.
Start
—
Start is an array describing the left corner of the n-dimension interval. The randomly chosen start points of the zero-finding algorithm can be found in the n-dimensional rectangle spanned by Start and End.
End
—
End is an array describing the right corner of the n-dimension interval. The randomly chosen start points of the zero-finding algorithm can be found in the n-dimensional rectangle spanned by Start and End.
X
—
X is an array of strings representing the x variables. If the array of strings contains the variable t, the VI returns an error.
F(X)
—
F(X) is an array of strings defining the functions in n dimensions. The formula can contain any number of valid variables.
Zeroes
—
Zeros contains the determined zeros of F(X).
f(Zeroes)
—
F(Zeros) contains the function values of Zeros. Usually, these values are close to 0.
ticks
—
ticks is the time in milliseconds to analyze the formula and to produce the Zeros.
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
As an example of using the nD Nonlinear System Solver VI, determine the solutions for the following nonlinear system.
2x + 3y + z² – 6 = 0 –4x + y² – 4z + 7 = 0 x² + y + z – 3 = 0To obtain solutions for the preceding nonlinear system, enter the following values on the front panel.
- Start: [-1, -1, -1]
- End: [4, 4, 4]
- X: [x, y, z]
- F(X): [2*x + 3*y + z*z - 6, -4*x + y*y - 4*z + 7, x*x + y + z - 3]
The solutions determined by the VI and returned in Zeros are (1.0000, 1.0000, 1.0000) and (–0.4050, 0.5931, 2.2429).
This algorithm is based on the nD Nonlinear System Single Solution VI.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Scripts and Formulas\Equation Explorer.vi
accuracy
—
number of trials
—
Start
—
X
—
Zeroes
—
ticks
—
error
—