Change language to:
English - Français - Português - Русский

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

Scilabヘルプ >> Polynomials > varn

varn

呼出し手順

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

p

symb, varname

pm

説明

`symb=varn(p)` は, 多項式`p`の記号変数 `symb`を返します.

`varn(p,'s')` は,`p`と 同じ係数を有し,`'s'`を記号変数とする 多項式行列を返します(変数名の変更).

`varn([])` yields [].

例

```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
```

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 名前の構文

履歴

 Version Description 5.5.1 Extension to rationals 6.0.0 シンボリック変数の名前はもはや4文字に制限されていません。 拡張されたUTF-8文字を追加できるようになりました。 varn([]) now returns [] instead of routing to %s_varn().
 Report an issue << sylm Polynomials Signal Processing >>

 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:Tue Feb 25 08:53:20 CET 2020