|
matrices multiplication
|
|
12-30-2009, 06:08 AM
Post: #1
|
|||
|
|||
|
matrices multiplication
here's the code for matrices multiplication in Pascal :
Code: Program two_matrices_cross(input,output);Gholamreza Takhti who was he? find out |
|||
|
12-30-2009, 06:15 AM
Post: #2
|
|||
|
|||
|
RE: matrices multiplication
Very good i must say. People usually think that multiplication of matrix is a(i,j)*b(i,j) but it isn't.
It is a bit more complex and that's why this code is a bit long. More about matrix multiplication you can find here : http://en.wikipedia.org/wiki/Matrix_multiplication There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
12-30-2009, 05:31 PM
Post: #3
|
|||
|
|||
|
RE: matrices multiplication
Thanks,and one more thing for the length of my codes is that i frequently use extra lines,for example when I want to write : here's your matrix maybe four or five lines I use as example:
Code: textcolor(something);these things trough the program becomes more than 30-40 lines for me,Lol , cuz of this my teacher assistant always nagging to me that what the code is this?!I think I have to shorten the length of my codes. Gholamreza Takhti who was he? find out |
|||
|
12-30-2009, 06:47 PM
(This post was last modified: 12-30-2009 06:49 PM by drdebcol.)
Post: #4
|
|||
|
|||
|
RE: matrices multiplication
It is okay, if you are coding for users than okay. You can make it shorter, but the point is that you write it clear with moving to the right when needed.
BTW one more thing, i have only one single tip on how to shorten your code in this case. You declared matrix 3 times : Code: Matrix1:Array[1..30,1..30] of real;Code: Matrix1,Matrix2,Matrix3:Array[1..30,1..30] of real;There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
12-30-2009, 07:26 PM
Post: #5
|
|||
|
|||
RE: matrices multiplication
(12-30-2009 06:47 PM)drdebcol Wrote: It is okay, if you are coding for users than okay. You can make it shorter, but the point is that you write it clear with moving to the right when needed.thanks friend
Gholamreza Takhti who was he? find out |
|||
|
« Next Oldest | Next Newest »
|





