Scilab 6.0.2
      
      
    Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
varn
多項式または有理分数のシンボリック変数
呼出し手順
symb = varn(p) pm = varn(p, varname)
パラメータ
- p
 多項式のか合理的な画分の行列. In Scilab, only univariate polynomials and rationals are supported. In a matrix, all polynomials or rationals have the same symbolic variable name.
- symb, varname
 文字列:記号変数の現在または新しい名前。 使用できる文字は変数名と同じです (命名規則を参照)。
- pm
 変数名が
varnameに設定されたpと等しい多項式または有理数の行列。
説明
symb=varn(p) は,
            多項式pの記号変数 symbを返します.
varn(p,'s') は,pと
            同じ係数を有し,'s'を記号変数とする
            多項式行列を返します(変数名の変更).
varn([]) yields [].
例
多項式の行列の場合:
--> 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
With some rationals:
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
参照
- poly — Polynomial definition from given roots or coefficients, or characteristic to a square matrix.
 - rlist — Scilab 有理関数定義
 - naming rules — Scilab 名前の構文
 
履歴
| バージョン | 記述 | 
| 5.5.1 | Extension to rationals  | 
| 6.0.0 | 
  | 
| Report an issue | ||
| << sylm | Polynomials | Signal Processing >> |