| Author |
Comment/Response |
Bill Simpson
|
09/14/12 03:05am
Please post the smallest simplest complete notebook with all the values of the variables you are using and demonstrating exactly that error when everything is evaluated in order the first time so someone can reproduce exactly the same calculation you have done.
If we do not know the values of s you are using or what other code you might have then it is very difficult to diagnose the problem.
This
In[1]:= s=3;
grammat[s_]:=Table[k+m+s,{k,1,2*s},{m,1,2*s}];
Print[grammat[s]];
evals[s_]:=Eigenvalues[grammat[s]]
From In[1]:= {{5,6,7,8,9,10},{6,7,8,9,10,11}, {7,8,9,10,11,12},{8,9,10,11,12,13},
{9,10,11,12,13,14},{10,11,12,13,14,15}}
doesn't generate any errors and even following immediately with this
In[5]:= evals[s]
Out[5]= {30+Sqrt[1005],30-Sqrt[1005],0,0,0,0}
doesn't generate any errors, but you didn't show any actual use of your evals function, so there must be something else going on in your code.
URL: , |
|