File: simp.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (47 lines) | stat: -rw-r--r-- 1,188 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

SIMP(G)                        Scilab Function                        SIMP(G)
NAME
  simp - rational simplification

CALLING SEQUENCE
  [N1,D1]=simp(N,D)
  H1=simp(H)

PARAMETERS

  N,D  : real polynomials or real matrix polynomials

  H    : rational matrix (i.e matrix with entries n/d ,n and d real polynomi-
       als)

DESCRIPTION
  [n1,d1]=simp(n,d) calculates two polynomials n1 and d1 such that n1/d1 =
  n/d.

  If N and D are polynomial matrices the calculation is performed element-
  wise.

  H1=simp(H) is also valid (each entry of H is simplified in H1).

  Caution:

  -no threshold is given i.e. simp cannot forces a simplification.

  -For linear dynamic systems which include integrator(s) simplification
  changes the static gain. (H(0) for continuous systems or H(1) for discrete
  systems)

  -for complex data, simp returns its input(s).

  -rational simplification is called after nearly each operations on ration-
  als. It is possible to toggle simplification on or off using simp_mode
  function.

EXAMPLES
  s=poly(0,'s');
  [n,d]=simp((s+1)*(s+2),(s+1)*(s-2))

  simp_mode(%F);hns=s/s
  simp_mode(%T);hns=s/s
SEE ALSO
  roots, trfmod, poly, clean, simp_mode