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

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

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

Ajuda do Scilab >> Polinômios > varn

varn

variável simbólica de polinômios ou de frações racionais

Seqüência de Chamamento

symb = varn(p)
pm = varn(p, varname)

Parâmetros

p

matriz de polinômios ou de frações racionais. In Scilab, only univariate polynomials and rationals are supported. In a matrix, all polynomials or rationals have the same symbolic variable name.

symb, varname

Caracteres string: nome atual ou novo da variável simbólica. Caracteres permitidos são os mesmos que para nomes de variáveis (veja regras de nomeação).

pm

matriz de polinômios ou de frações racionais, igual a p, com seu nome de variável definido como varname.

Descrição

symb=varn(p) retorna em symb a variável simbólica de p.

varn(p,'s') retorna uma matriz de polinômios com os mesmos coeficientes que p mas com 's' como variável simbólica (mudança do nome de variável).

varn([]) yields [].

Exemplos

Com uma matriz de polinômios :

s = poly(0,'s'); p = [s , 1-s^2]
v = varn(p)
typeof(v)
px = varn(p,'x')
px == p
--> s = poly(0,'s'); p = [s , 1-s^2]
 p  =
           2
   s   1 -s

--> v = varn(p)
 v  =
 s

--> typeof(v)
 ans  =
 string

--> px = varn(p,'x')
 px  =
           2
   x   1 -x

--> px == p
 ans  =
  T T

Com frações racionais :

f = %z/(%z-1); f = [f f^2]
varn(f)
fx = varn(f, "x")
fx == f
--> f = %z/(%z-1); f = [f f^2]
 f  =
                 2
     z          z
   -------  -----------
                      2
   -1 + z   1 - 2z + z

--> varn(f)
 ans  =
 z

--> fx = varn(f, "x")
 fx  =
                 2
     x          x
   -------  -----------
                      2
   -1 + x   1 - 2x + x

--> fx == f
 ans  =
  T T

Ver Também

Histórico

VersãoDescrição
5.5.1

Extensão de frações racionais

6.0.0
  • O nome da variável simbólica não está mais limitado a 4 caracteres. Agora ele pode incluir caracteres UTF-8 estendidos.
  • varn([]) now returns [] instead of routing to %s_varn().
Report an issue
<< sylm Polinômios Processamento de Sinais >>

Copyright (c) 2022-2023 (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:
Mon Jan 03 14:35:23 CET 2022