use dfimsl
use linear_operators
integer,parameter::n=3
real,parameter::s=3,g=6,s2=2*s,p=2*(s+g),m=s-p,a22=2*p+s
real,dimension(n,n)::a=(/p,m,s2,m,a22,m,s2,m,p/),y,lambda(n)
a=a/6; print 100,'matrix A',a
lambda=eig(a,v=y);
print 100,'eigenvalues',lambda;
print 100,'eigenvectors',((y(i,j),j=1,n),i=1,n)
100 format(//10x,a/(3f8.3))
end
|