|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
i love math, and would love to help you, but my linear algrabra class is 2 years away, and therefor have no idea what to do.
is this what your trying to do? http://mathforum.org/library/drmath/view/53207.html if not search here for gaussian http://mathforum.org/dr.math/ a lot of people stop by there for help with algorithm's; if they dont have the one your looking for you can submit a question (make sure you say your a student or they wont reply) and they can give you what you would need to do step by step. After that, if you need help with putting it into php i could try and give you a hand. hth |
| Sponsored Links |
|
|
|
|||||
|
Gauss-Jordan Elimination is useful for inverting matrices, among other things... which can provide easy solutions to large systems of equations. I don't know a lot about how PHP stores variables, but I can definitely help with the algorithm. It'll be a little messy because you'll be doing a lot of nested For loops.
I'll assume you're storing your matrix in an array. The basic idea is to think of each row as a vector. [1 2 3 4 5] <-- vector 1 [2 3 4 5 6] <-- vector 2 [3 4 5 6 7] <-- vector 3 [4 5 6 7 8] <-- vector 4 [5 6 7 8 9] <-- vector 5 Let A be the matrix, V[m] be a row from A, m be the row index, n be the column index. Then what you'll do is: Code:
For n = 1 to 5 Do
Let c=A[n,n]
if c<>0
For m = 1 to 5 Do
if m<>n then
V[m]=V[m]-A[m,n]/c*V[n]
end if
end For
end if
end For
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Code: Simple Encryption Algorithm | Void | PHP Tutorials | 11 | 11-05-2008 05:08 PM |
| New Algorithm Matches Any Tumor Cells To Best Possible Anticancer Treatments | Kernel | Programming News | 0 | 07-29-2007 08:52 PM |
| efficient algorithm | sovixi | Python | 3 | 04-19-2007 02:47 PM |
| can sum1 help me in making a CPU scheduling algorithm program in c? | bryan | General Programming | 2 | 11-28-2006 12:55 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%