تصویر:Matrix rotation.png

وکیپیڈیا سے

No higher resolution available.

Matrix_rotation.png (493 × 493 pixel, file size: 4 KB, MIME type: image/png)

Public domain یہ تصویر اس کے مصنف، منصوبہ اردو ویکیپیڈیا کے urdutext کی طرف سے دائرہ عام میں داخل ہے (یا اب داخل کیا جا رہا ہے)۔ اس کا اطلاق دنیا بھر میں ہے۔

اگر ایسا قانونی طور پر ممکن نہ ہو،
تو urdutext سب کو اس کے استعمال کی عام اجازت دیتا/دیتی ہے، کسی بھی مقصد کے لیے، غیر مشروط، ماسوائے ایسی صورت میں کہ اس میں کوئی قانونی رکاوٹ ہو۔


// scilab script (matrix function)
//
// draw triangle
a1=[1.5 2 .5 1.5];
b1=[.5 2 1.5 .5];
xfpoly(a1,b1,2);
// rotation angle (radians)
theta=%pi/2;  
// rotation matrix
A=[cos(theta) -sin(theta);sin(theta) cos(theta)];
// transform
for k=1:4
  z(1)=a1(k);
  z(2)=b1(k);
  w=A*z;
  a2(k)=w(1);
  b2(k)=w(2);  
end
// draw rotated triangle
xfpoly(a2,b2,5);
square( -3,-3,3,3);
// draw a line
plot([0 1],[0 1],'b');
plot([0 -1],[0 1],'r');
//

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.

  • (ضائع) ( رائج) 00:54, 9 جولا‎ئی 2006 . . Urdutext (تبادلۂ_خیال | شـراکـت) . . 493×493 (4,047 bytes) (<div align="left" dir="ltr"> <PRE> // scilab script (matrix function) // // draw triangle a1=[1.5 2 .5 1.5]; b1=[.5 2 1.5 .5]; xfpoly(a1,b1,2); // rotation angle (radians) theta=%pi/2; // rotation matrix A=[cos(theta) -sin(theta);sin(theta) cos(theta)])

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