Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.0 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Funções Elementares > Ponto flutuante > 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])

See also

  • isnan — verifica entradas NaN ("não é um número")
  • isreal — verifica se uma variável é armazenada como real ou complexa.
  • isnum — testa se um string representa um número
  • type — tipo de variável
Report an issue
<< int Ponto flutuante isnan >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:09:42 CET 2017