Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский
Scilabヘルプ >> Elementary Functions > Floating point > isinf


tests for infinite elements


r = isinf(x)



matrix of real or complex numbers


matrix of booleans of the same size as x


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.


[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])

See also

  • isnan — "Not a Number" エントリを調べる
  • isreal — 変数が実数または複素数のエントリかどうかを調べるc
  • isnum — 文字列が数字であるかどうかを調べる
  • type — 変数の型を返す
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Feb 14 15:02:06 CET 2019