Reciprocal Function

Owning Palette: Numeric VIs and Functions

Requires: Base Development System

Divides 1 by the input value.

The connector pane displays the default data types for this polymorphic function.

Details  Example

 Add to the block diagram  Find on the palette
x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
1/x is infinity if x is 0. If x is an integer, 1/x is a double-precision, floating-point number.

Note  You can manually configure this function to output data of a type you want. To specify the output data type, right-click the function and select Properties to display the Object Properties dialog box. On the Output Configuration page, click the Representation icon and select the data type you want. A blue coercion dot appears on the output terminal of the function to indicate that you have configured the output data type.

Reciprocal Details

Fixed-Point Details

If you wire a fixed-point value to this function, by default LabVIEW configures the integer word length of the reciprocal to avoid overflow. However, because the precision of the reciprocal can be infinite, rounding conditions always occur. Use the Numeric Node Properties dialog box to configure how LabVIEW handles rounding of fixed-point data. This function always uses the Saturate overflow mode to handle overflow.

Example

Refer to the Numeric Functions VI in the labview\examples\Numerics directory for an example of using the Reciprocal function.

 Open example  Find related examples