Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

inf (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: constants

Requires: MathScript RT Module

Syntax

c = inf

c = inf(a)

c = inf(a, b)

Description

Generates a matrix of values of infinity, or indicates that a value is infinity. The IEEE standard for floating-point arithmetic defines infinity to be the result of operations that create values larger than that which can be represented. LabVIEW correctly parses mathematical expressions evaluating to infinity using the inf variable.

Examples

Inputs

Name Description
a Specifies the number of rows in c. a is a positive integer.
b Specifies the number of columns in c. b is a positive integer.

Outputs

Name Description
c Returns an a-by-b matrix whose elements are all a representation of the value of infinity. If you specify a but not b, c returns a square matrix of order a. If you do not specify an input, c returns a value of infinity. c is a scalar or matrix of positive, floating-point numbers.

Examples

A = exp(1000)
B = 1/0
C = atan(1/0)


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit