Functions | |
if (m==0) y | |
elseif (m==1) v = eig (x) | |
else | print_usage () |
y (1) | |
y (2:(j+1)) | |
endfor | if (all(all(imag(x)==0))) y |
endif endfunction | !assert (all(all(poly([1, 2, 3])==[1,-6, 11,-6]))) |
!assert (all(all(abs(poly([1, 2;3, 4])-[1,-5,-2])< sqrt(eps)))) | |
!error | poly ([1, 2, 3;4, 5, 6]) |
!assert (poly([]), 1) | |
Variables | |
function | y |
endif | m = min (size (x)) |
n = max (size (x)) | |
return | |
for | j = 1:n |
!assert | ( | poly([]) | , | |
1 | ||||
) |
endif endfunction !assert | ( | all(all(poly([1, 2, 3])==[1,-6, 11,-6])) | ) |
elseif | ( | m | = =1 |
) | = eig (x) |
if | ( | m | = =0 |
) |
!error poly | ( | ) |
else print_usage | ( | ) |
y | ( | 2: | j+1 | ) |
y | ( | 1 | ) |
endif m = min (size (x)) |
n = max (size (x)) |
return |