Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.3 - English

Change language to:
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 help >> Scilab > rational

rational

Scilab objects, rational in Scilab

Description

A rational r is a quotient of two polynomials r=num/den. The internal representation of a rational is a list. r=tlist('['r','num','den','dt'],num,den,[]) is the same as r=num/den. A rational matrix can be defined with the usual syntax e.g. [r11,r12;r21,r22] is a 2x2 matrix where rij are 1x1 rationals. A rational matrix can also be defined as above as a list tlist(['r','num','den','dt'],num,den,[]) with num and den polynomial matrices.

Examples

s=poly(0,'s');
W=[1/s,1/(s+1)]
W'*W
Num=[s,s+2;1,s];Den=[s*s,s;s,s*s];
tlist(['r','num','den','dt'],Num,Den,[])
H=Num./Den
syslin('c',Num,Den)
syslin('c',H)
[Num1,Den1]=simp(Num,Den)

See Also

  • poly — polynomial definition
  • syslin — linear system definition
  • simp — rational simplification
<< quit Scilab readgateway >>

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:
Wed Oct 05 12:09:25 CEST 2011