Comp Sci I want code (program) to solve Gaussian Elemination by C++

AI Thread Summary
A user seeks assistance with C++ code for solving Gaussian elimination for an n x n matrix with real number coefficients. Respondents emphasize the need for clarity on the matrix's properties, such as whether it is symmetric or banded, as this affects the choice of algorithms. They suggest starting with resources like LAPACK++ for efficient implementations. The user confirms they require a general method for real coefficients in an n x n format. The discussion highlights the importance of specifying matrix characteristics for optimal coding solutions.
Hussein Abd
Messages
6
Reaction score
0
Hi,

can anyone help me ?

I want code (program) to solve Gaussian Elemination by C++ .

Please Help me and I will really appreciate your time and effort in
helping me in my assignment.


Thanks.
 
Physics news on Phys.org
I think you need to define better what you actually want.

What sort of coefficients - real or complex?

What size of equations - 10x10 or 10,000,000 x 10,000,000?

Any special properties of the left hand side matrix - general? symmetric? banded? positive definite? Hermitian? tridiagonal? etc etc... there are different (efficient) algorithms for all of them.

Start here: http://math.nist.gov/lapack++/
 
Last edited:
The sort of coefficients is real number and the size is n by n ( general method ) n*n .

thank you ever so much
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top