GNU Octave, version 2.1.40 (i386-redhat-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'. Please contribute if you find this software useful. For more information, visit http://www.octave.org/help-wanted.html Report bugs to . octave> hill([1,0, 1, 1], .1) error: `t' undefined near line 5 column 28 error: evaluating argument list element number 1 error: evaluating binary operator `*' near line 5, column 22 error: evaluating binary operator `+' near line 5, column 18 error: evaluating prefix operator `-' near line 5, column 13 error: evaluating binary operator `/' near line 5, column 32 error: evaluating binary operator `*' near line 5, column 51 error: evaluating assignment expression near line 5, column 11 error: called from `hill' in file `/home/marek/CourseDir/481/Octave/hill.m' octave> hill([1,0, 1, 1], .1) wdot = 0 -1 octave> hill([1,0, 1, 1], .1) octave> hill([1,0, 1, 1], .1) ans = 0 -1 0 0 octave> hill([1,0, 1, 0], .1) ans = 0 -1 0 0 octave> hillstrob(1, 0) error: number of rows must match (1 != 2) near line 5, column 23 error: evaluating assignment expression near line 5, column 6 error: called from `hillstrob' in file `/home/marek/CourseDir/481/Octave/hillstrob.m' octave> hillstrob(1, 0) ans = 1 0 0 1 octave> hillstrob(1, .2) ans = 1 0 0 1 octave> hillstrob(1, .2) ans = 1 0 0 1 octave> hillstrob(1, .2) ans = 1.0000e-00 2.5890e-07 -2.5890e-07 1.0000e-00 octave> hillstrob(1, 0) ans = 1.0000e-00 2.5890e-07 -2.5890e-07 1.0000e-00 octave> hillstrob(1, .1) ans = 1.0000e-00 2.5890e-07 -2.5890e-07 1.0000e-00 octave> charpoly = poly(hillstrob(1, .99)) ans = 1.0000e-00 2.5890e-07 -2.5890e-07 1.0000e-00 octave> charpoly = poly(hillstrob(1, .99)) charpoly = 1.00000 -2.00000 1.00000 octave>