Find All Zeros of f(x) (VI) VI
- Updated2025-07-30
- 3 minute(s) read
Determines all zeros of a 1D function in a given interval. You must manually select the polymorphic instance to use.

Inputs/Outputs
accuracy
—
accuracy controls the accuracy of the zeros and the extrema. The default is 1.00E-8.
step type
—
step type controls the spacing used for the function values. In general, modified function leads to more accurate zeros and extrema.
algorithm
—
algorithm is the method used by the VI.
start
—
start is the start point of the interval. The default is 0.0.
end
—
end is the end point of the interval. The default is 1.0.
f(x)
—
f(x) is a strictly typed reference to the VI that implements the 1D function. Create this VI by starting from the VI template located in labview\vi.lib\gmath\zero.llb\Zero Finder f(x) 1D.vit.
data
—
data contains arbitrary values that pass to the VI that implements the function.
Zeros
—
Zeros are the determined zeros of f(x).
f(Zeros)
—
f(Zeros) contains the function values of Zeros. Usually, these values are close to 0.
ticks
—
ticks is the time in milliseconds for the whole calculation.
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. |
To obtain the zeros of sin(sinc(gamma(x))) in the interval (–2, 2), enter the following values on the front panel:
- start: -2.00
- end: 2.00
- formula: sin(sinc(gamma(x)))
The following illustration shows the graph and the zeros of sin(sinc(gamma(x))) in the interval (–2, 2).

Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Optimization\1D Explorer.vi
accuracy
—
step type
—
f(x)
—
data
—
Zeros
—
ticks
—
error
—