Last Modified: June 25, 2019

Determines multiple zeros of a function in a given interval using the Newton-Raphson method. You define the function with a formula.

Step size that this node uses to calculate the numerical derivative of the given function.

**Default: **1E-08

Formula that defines the function.

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.

Start value of the interval.

**Default: **0

End value of the interval.

**Default: **1

Type of function to use to control the spacing of the function values.

Name | Value | Description |
---|---|---|

Fixed Function | 0 | Uses a fixed function that generates evenly-spaced function values. |

Modified Function | 1 | Uses a modified function that optimizes the step size to generate more accurate results. |

**Default: **Fixed Function

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.

**Default: **No error

Conditions that terminate the process of finding zeros.

This node terminates the process of finding zeros if this node reaches the **accuracy** threshold or passes the **maximum iterations** threshold.

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

**Default: **1E-08

Maximum number of iterations that the node runs to determine the zeros.

**Default: **200

Determined values of the independent variable where the function evaluates to zero.

These values are an approximation of the actual values of the variable where the function evaluates to zero.

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

Points in the interval where the function is likely undefined.

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

**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.

To determine the zeros of *x*^{2} + sin(*x*) - 1 in the interval (-2, 2), enter the following values on the panel.

formula |
x^2+sin(x)-1 |

start |
-2 |

end |
2 |

The following table lists the outputs of this node.

zeros |
[-1.40962, 0.636733] |

f(zeros) |
[-1.11022E-16, 0] |

possible singularities |
Empty array |

**Where This Node Can Run: **

Desktop OS: Windows

FPGA: Not supported

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