Rank: 1526 based on 40 downloads (last 30 days) and 1 file submitted
photo

Sobhan Rostami

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Sobhan
Updated   File Tags Downloads
(last 30 days)
Comments Rating
06 Nov 2007 Linear equation system 'Ax=r' by Gauss elimination method Solve N-equation Author: Sobhan Rostami gauss elimination, matlab, linear algebra, mathematics 40 11
  • 2.88889
2.9 | 11 ratings
Comments and Ratings on Sobhan's Files View all
Updated File Comment by Comments Rating
14 Dec 2008 Linear equation system 'Ax=r' by Gauss elimination method Solve N-equation Author: Sobhan Rostami group, bahria

m don,t understand this code mean m write own code but not applied

11 Dec 2007 Linear equation system 'Ax=r' by Gauss elimination method Solve N-equation Author: Sobhan Rostami Kristensen, Søren Hartmann

Got the problem right where other implementations of the method failed! (including my own attempt)

01 Dec 2007 Linear equation system 'Ax=r' by Gauss elimination method Solve N-equation Author: Sobhan Rostami Davis, Tim

Jake: 3 pages? It can be done in about 23 lines of C or Fortran, including the forward/backsolve. It can be done in 1 line of MATLAB (x=A\b), or if you don't want to use backslash, in about 14 lines of (well-written) MATLAB, including proper partial pivoting. This code is double that if you graciously exclude the "please input your matrix" prompts. In addition, Rostami's code does NOT do partial pivoting; all it checks if the pivot is zero.

This code is absolute dreck. Here is the output for a trivial 2-by-2 matrix that breaks this code:
Solution of N-equation "[A][X]=[r]"
Enter number of Equations :2
Enter Matrix [A]:[1e-24 1 ; 1 1]
Enter Matrix [r]:[2 ; 3]
@----------------------------------------------------------@
Output [B][x]=[b]
Upper riangular Matrix [B] =
   1.0e+24 *

    0.0000 0.0000
         0 -1.0000

Matrix [b] =
   1.0e+24 *

    0.0000
   -2.0000

solution of linear equations :
     0
     2

solve with matlab functions(for checking):
     1
     2

The MATLAB solution (using x=inv(A)*b of all things!) is correct. Rostami's code gives a completely incorrect answer.

Please delete this file from the File Exchange; it leads unwary users (like Jake) down the wrong path with counterfeit algorithms that pretend to be robust.

21 Nov 2007 Linear equation system 'Ax=r' by Gauss elimination method Solve N-equation Author: Sobhan Rostami de Burgh, Jake

Although it takes just one page, it works as millions of pages for me because I really needed it. My professor wrote a program in 3 pages that did whatever your program does but in a really weaker format. thanks very much.

20 Nov 2007 Linear equation system 'Ax=r' by Gauss elimination method Solve N-equation Author: Sobhan Rostami Almassri, Mohammed

Thanks for the code.
it is very useful code for me, I need it.

Top Tags Applied by Sobhan
gauss elimination, linear algebra, mathematics, matlab
Files Tagged by Sobhan
Updated   File Tags Downloads
(last 30 days)
Comments Rating
06 Nov 2007 Linear equation system 'Ax=r' by Gauss elimination method Solve N-equation Author: Sobhan Rostami gauss elimination, matlab, linear algebra, mathematics 40 11
  • 2.88889
2.9 | 11 ratings

Contact us at files@mathworks.com