تصویر:Eig sym matrix ellipse.png

وکیپیڈیا سے

Eig_sym_matrix_ellipse.png (4KB, MIME type: image/png)

// Scilab script to generate the figure

x1=[-1:.01:1];
y1=sqrt(1-x1^2);  // equation of a circle (upper part)
y2=-y1;               // lower part of the circle
plot(x1,y1,'b');     // plot the upper half of the circle
plot(x1,y2,'b');       // plot the lower half of the circle
A=[3 4; 4 3];        // symmetric matrix
W1=A*[x1;y1];   // transform the upper half of the circle
W2=A*[x1;y2];   // transform the lower half of the circle
plot(W1(1,:),W1(2,:),'r');     // plot half ellipsoid
plot(W2(1,:),W2(2,:),'r');    // plot other half of the ellipsoid
square(-6,-6,6,6);
[V,E]=spec(A);           // eigenvectors and eigenvalues
s1=7;
plot([0 V(1,1)].*s1,[0 V(1,2)].*s1,'k');    // plot the first eigenvector
plot([0 V(2,1)].*s1,[0 V(2,2)].*s1,'k');   // plot the second eigenvector

File history

Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.
Click on date to see the file uploaded on that date.

  • (ضائع) ( رائج) 04:09, 23 جولا‎ئی 2006 . . Urdutext (تبادلۂ_خیال | شـراکـت) . . 352×340 (3,774 bytes) (<div align="left" dir="ltr"> // Scilab script to generate the figure <PRE> x1=[-1:.01:1]; y1=sqrt(1-x1^2); y2=-y1; plot(x1,y1,'b'); plot(x1,y2,'b'); A=[3 4; 4 3]; W1=A*[x1;y1]; W2=A*[x1;y2]; plot(W1(1,:),W1(2,:),'r'); plot(W2(1,:),W2(2,:),'r'); square(-6,)

اس ملف (فائل) سے درج ذیل صفحات رابطہ رکھتے ہیں: