Find Multiple Zeros nD System (Formula) (G Dataflow)

Determines a set of solutions of a nonlinear system of equations in n dimensions beginning with randomly chosen start points. You define the equations with formulas.  h

Step size that this node uses to calculate the numerical derivatives of the given functions.

Default: 1E-08 formulas

Formulas that define the n-dimension functions.

You only need to enter the left side of the equations that describe the nonlinear system. This node assumes that the right side is zero.

Entering Valid Variables

This node accepts variables that use the following format rule: variables must start with a letter or an underscore followed by any number of alphanumeric characters or underscores. variables

Names of the variables.

Variable names must start with a letter or an underscore followed by any number of alphanumeric characters or underscores. start

Start values of the n-dimension interval where this node starts searching for the solutions. Each element in this array represents the start value of the corresponding variable in variables. end

End values of the n-dimension interval where this node stops searching for the solutions. Each element in this array represents the end value of the corresponding variable in variables. error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error  If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error accuracy

Maximum deviation of the calculated solution from the actual solution when determining the zeros.

Default: 1E-08 number of trials

Number of randomly chosen points between start and end. This node starts with these randomly chosen points and looks for zeros close to these points. The greater number of trials is, the higher the probability that this node finds all solutions.

Default: 5 zeros

Determined values of the variables where the n-dimensional functions evaluate to zero.

These values are an approximation of the actual values of the variables where the functions evaluate to zero. f(zeros)

Function values at zeros. The values are expected to be nearly zero. error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error  If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Finding All Solutions

This node generates random n-dimension points as specified by number of trials and looks for a solution close to each point. The greater the number of trials, the higher the probability that this node finds all solutions.

However, this node cannot guarantee finding all solutions because this node uses an algorithm that is fundamentally stochastic. If the random points are far from the actual solutions, the node might not find all (or any) solutions.

For example, if all the random points are close to a particular solution and far from other solutions, the node finds that particular solution multiple times and does not find other solutions. Generally, the node finds the solution closest to the random point for a particular trial.

To determine the solutions for the following nonlinear system in the interval [-1, 4; -1, 4; -1, 4], enter the following values on the panel:

2x + 3y + z2 - 6 = 0

-4x + y2 - 4z + 7 = 0

x2 + y + z - 3 = 0

 formulas [2*x+3*y+z^2-6; -4*x+y^2-4*z+7; x^2+y+z-3] variables [x, y, z] start [-1, -1, -1] end [4, 4, 4]

The following table lists the outputs of this node.

 zeros [1, 1, 1; -0.404962, 0.593101, 2.242904] f(zeros) [3.91882E-11, 1.03903E-09, 2.04214E-11; 1.07497E-10, 1.61782E-11, 1.40149E-10]

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application