GNU Octave, version 2.1.36 (i686-pc-linux-gnu).
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Report bugs to <bug-octave@bevo.che.wisc.edu>.

octave> A = [1, 2]
A =

  1  2

octave> B = [1, 1, 1]
B =

  1  1  1

octave> A
A =

  1  2

octave> B
B =

  1  1  1

octave> C = conv(A, B)
ans =

  1  3  3  2

octave>  C = conv(A, B)
C =

  1  3  3  2

octave> [P, R] = deconv(C, A)
ans =

  1  1  1

octave> [P, R] = deconv(C, A)
P =

  1  1  1

R =

  0  0  0  0

octave> roots(A)
ans = -2
octave> roots(B)
ans =

  -0.50000 + 0.86603i
  -0.50000 - 0.86603i

octave> i
i = 0 + 1i
octave> exp(i)
ans = 0.54030 + 0.84147i
octave> help(roots)
error: `root' undefined near line 16 column 6
error: evaluating argument list element number 1
error: evaluating index expression near line 16, column 1
octave> help roots
error: `v' undefined near line 46 column 18
error: evaluating argument list element number 1
error: evaluating index expression near line 46, column 12
error: evaluating argument list element number 1
error: evaluating index expression near line 46, column 7
error: evaluating binary operator `>' near line 46, column 22
error: evaluating binary operator `||' near line 46, column 26
error: if: error evaluating conditional expression
error: evaluating if command near line 46, column 3
error: called from `roots' in file `/usr/share/octave/2.1.36/m/polynomial/roots.m'
error: evaluating argument list element number 1
octave> help roots
roots is the user-defined function from the file
/usr/share/octave/2.1.36/m/polynomial/roots.m

 - Function File:  roots (V)
     For a vector V with N components, return the roots of the
     polynomial

          v(1) * z^(N-1) + ... + v(N-1) * z + v(N).



Additional help for built-in functions, operators, and variables
is available in the on-line version of the manual.  Use the command
`help -i <topic>' to search the manual index.

Help and information about Octave is also available on the WWW
at http://www.octave.org and via the help-octave@bevo.che.wisc.edu
mailing list.
octave> B = [1, 0, 7, 3]
ans =

   0.20906 + 2.67042i
   0.20906 - 2.67042i
  -0.41813 + 0.00000i

octave> B = [1, 0, 7, 3]
B =

  1  0  7  3

octave> A = [1,1]
A =

  1  1

octave> [R, P, K, E] = residue(A, B)
R =

  -0.03867 - 0.19632i
  -0.03867 + 0.19632i
   0.07733 + 0.00000i

P =

   0.20906 + 2.67042i
   0.20906 - 2.67042i
  -0.41813 + 0.00000i

K = [](0x0)
E =

  1
  1
  1

octave> R
R =

  -0.03867 - 0.19632i
  -0.03867 + 0.19632i
   0.07733 + 0.00000i

octave> P
P =

   0.20906 + 2.67042i
   0.20906 - 2.67042i
  -0.41813 + 0.00000i

octave> K
K = [](0x0)
octave> E
E =

  1
  1
  1

octave> A
A =

  1  1

octave> B
B =

  1  0  7  3

octave> A = [1 0 0 0 0 1]
A =

  1  0  0  0  0  1

octave> [M, S] = deconv(A, B)
M =

   1   0  -7

S =

    0    0    0   -3   49   22

octave> [R, P, K, E] = residue(A, B)
R =

  -1.56560 - 9.30744i
  -1.56560 + 9.30744i
   0.13120 + 0.00000i

P =

   0.20906 + 2.67042i
   0.20906 - 2.67042i
  -0.41813 + 0.00000i

K =

   1   0  -7

E =

  1
  1
  1

octave> r
error: `r' undefined near line 30 column 1
octave> R
R =

  -1.56560 - 9.30744i
  -1.56560 + 9.30744i
   0.13120 + 0.00000i

octave> E
E =

  1
  1
  1

octave> K
K =

   1   0  -7

octave> P
error: `p' undefined near line 33 column 1
octave> P
P =

   0.20906 + 2.67042i
   0.20906 - 2.67042i
  -0.41813 + 0.00000i

octave> B
B =

  1  0  7  3

octave> B0 = [1, -5]
B0 =

   1  -5

octave> B2 = conv(B1, B0)
B1 =

    1  -10   25

octave> B3 = conv(B2, B0)
B2 =

     1   -15    75  -125

octave> B3 = conv(B2, B0)
B3 =

     1   -20   150  -500   625

octave> B = conv(B3, [1, 1])
B =

     1   -19   130  -350   125   625

octave> [R, P, K, E] = residue(A, B)
R =

    5.7809e+11
   -8.8627e+08
    6.7973e+05
   -5.7809e+11
   -1.3158e-15

P =

   5.00077
   5.00000
   5.00000
   4.99923
  -1.00000

K = 1
E =

  1
  2
  3
  1
  1

octave> R
R =

    5.7809e+11
   -8.8627e+08
    6.7973e+05
   -5.7809e+11
   -1.3158e-15

octave> E
E =

  1
  2
  3
  1
  1

octave> R
R =

    5.7809e+11
   -8.8627e+08
    6.7973e+05
   -5.7809e+11
   -1.3158e-15

octave> P
P =

   5.00077
   5.00000
   5.00000
   4.99923
  -1.00000

octave> [R, P, K, E] = residue(A, B)
R =

    5.7809e+11
   -8.8627e+08
    6.7973e+05
   -5.7809e+11
   -1.3158e-15

P =

   5.00077
   5.00000
   5.00000
   4.99923
  -1.00000

K = 1
E =

  1
  2
  3
  1
  1

octave> 