Scilab 6.0.2

Scilab Help >> Elementary Functions > Floating point > isinf

# isinf

tests for infinite elements

### Syntax

r = isinf(x)

### Arguments

- x
matrix of real or complex numbers

- r
matrix of booleans of the same size as

`x`

### Description

`isinf(x)`

returns the matrix `r`

of booleans such that, for each element `x(i)`

,
`r(i)`

is set to `%T`

if and only if
`x(i)`

is infinite.

When `x`

is complex-encoded, `x(i)`

is considered infinite if its real part or its imaginary part (or both)
are infinite.

### Examples

[i, inf, nan] = (%i, %inf, %nan); isinf([-1 0.01 -inf inf nan]) isinf([2+i, -10-inf, inf+i]) isinf([nan-i, inf-nan*i, nan+i*inf])

## Comments

Add a comment:Please login to comment this page.