Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function
tests for infinite elements
r = isinf(x)
matrix of real or complex numbers
matrix of booleans of the same size as
isinf(x) returns the matrix
of booleans such that, for each element
r(i) is set to
%T if and only if
x(i) is infinite.
x is complex-encoded,
is considered infinite if its real part or its imaginary part (or both)
[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])
|Report an issue|
|<< int||Floating point||isnan >>|