PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Already try to make it but it doesnt work at all.. T___T
i dont need javascript like site above, just need the normal html & php code for the calculation.. can someone help me out from this problem please..?? Thx so much before, glad to join to this forum, im a quite php freaks, but still very2 newbie..
Actually i just need the php code (matrix multiplication) for my DSS (Decision Support System) project that requires to multiply the matrix. Hope someone can help me out!
I just can made like this
just normal multiplication:
a11*a11 = a11
a12*a12 = a12
a13*a13 = a13
but code above that i made is false, the multiplication matrix actually is not like that.. hiks..
this is my code (the way to multiply the matrix is false)
Thanks for all the advices, but i've already google for it, and couldn't find the right code for this.. T__T
@Oren: That's my way.. just a normal & single multiplication.. not a real way of multiplicationing matrix..
a11*a11 = a11
a12*a12 = a12
a13*a13 = a13
that's true.. that's my code above will works..
first you need to set how much the column.. if you set 3x3 then you will multiply matrix 3x3
if you set 5x5 then you will be able to set matrix multiplication in 5x5 columns..
but it's just a single multiplication, not the real matrix multiplication..
I'm sorry, but it seems that you don't even know how to multiple 2 matrices. Please do some research and come back to us when you have a real PHP-related problem.
Have a look at the logic in the matrix multiplication. Write that out on paper. Convert that to code comments. Then code your comments. Start with one dimension (say 2X2 matrix multiplication) then expand into multiple dimensions with greater/more complex matrix types.