Functions | |
if (nmax==1) retval | |
endfor else | error ("hilb: expecting scalar argument, found something else") |
endif endfunction | !assert ((hilb(2)==[1, 1/2;1/2, 1/3]%!&&hilb(3)==[1, 1/2, 1/3;1/2, 1/3, 1/4;1/3, 1/4, 1/5])) |
!error | hilb () |
!error | hilb (1, 2) |
Variables | |
function | retval |
endif | nmax = length (n) |
tmp = 1:n | |
for | i |
endif endfunction !assert | ( | (hilb(2)==[1, 1/2;1/2, 1/3]%!&&hilb(3)==[1, 1/2, 1/3;1/2, 1/3, 1/4;1/3, 1/4, 1/5]) | ) |
!error hilb | ( | 1 | , | |
2 | ||||
) |
!error hilb | ( | ) |
if | ( | nmax | = =1 |
) |
tmp = 1:n |