Last Modified: January 12, 2018
Calculates one or more function values of a given formula that contains only one variable.
formula
Function to calculate. The formula can contain only one variable.
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.
x value
Value of the variable where this node calculates the function value.
This input accepts the following data types:

Doubleprecision, floatingpoint number

1D array of doubleprecision, floatingpoint numbers
Default: 0
error in
Error conditions that occur before this node runs.
The node responds to this input according to 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
y value
Function value(s) at x value.
This output can return the following data types:

Doubleprecision, floatingpoint number

1D array of doubleprecision, floatingpoint numbers
error out
Error information.
The node produces this output according to 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. 
The following table shows examples of the inputs and outputs of this node.
formula 
x value 
y value 
x^2 
3 
9 
[1, 2, 3, 4, 5] 
[1, 4, 9, 16, 25] 
x * sin(x) 
2.56 
1.41 
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application
Recently Viewed Topics