# inf

Version:

Generates an array of infinity. You can use the notations Inf and inf.

## Syntax

c = inf
c = inf(a)
c = inf(a, b)
c = inf(a, b, ...)
c = inf(v)
c = inf(class)
c = inf(a, class)
c = inf(a, b, class)
c = inf(a, b, ..., class)
c = inf(v, class)

## a

Number of rows in c. a is a non-negative integer. If a is zero, the function returns an empty array.

## b

Number of columns in c. b is a non-negative integer. If b is zero, the function returns an empty array.

## ...

Further parameters for specifying the number of elements in higher dimensions. You can replace one parameter for any dimension with an empty array, for example, reshapemx([1,2,3,4,5,6], 2, []). The array then is a placeholder for an unspecified size. MathScript uses the array size and the reshape size to calculate the unspecified size automatically.

## v

Vector with number of rows, columns, and further dimensions. The elements of v are non-negative integers.

## class

Class of the returned array (optional).

Name Description
'double'

double (default)

'single'

single

## c

Array 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 an array of positive, floating-point numbers.

## Definition of inf

The IEEE standard for floating-point arithmetic defines infinity as the result of operations that create values larger than that which can be represented. MathScript correctly parses mathematical expressions evaluating to infinity with the inf variable.

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

Where This Node Can Run:

Desktop OS: Windows

FPGA: DAQExpress does not support FPGA devices