Jump to content

to solve an equations system


Recommended Posts

Guest molesqualeux
Posted

Hi , I need your help .

I search on the web an algorithm that can solve an n equations system at n unknowns .

 

Thanks a lot!

Posted

Or, if you have a range where you think the solution will be, you could just approximate numerically with a do/until loop. Or, if you don't have a range, you could use determinants (may be a little hard if you want a programmable algorithm...though I've never actually tried to program it). Or, you could just use matrices (the famous AX=B ).

Guest molesqualeux
Posted

thanks , I hope I 'll find the algorithm on Internet.

I know how to use it manually but in order to program it , it's very difficult.

 

Above all , it must write the algorithm and then program it with pascal for example

Guest molesqualeux
Posted

this is a part of the result of my pascal program

 

procedure pivot(var mat1:matrice);

begin

 

 

 

for k:=1 to DIM_MAX-1 do

 

 

 

 

begin

 

for i:=k to DIM_MAX-1 do

 

begin

 

for j:=k to DIM_MAX-1 do

begin

mat1[i+1,1+j]:= mat1[i+1,j+1] * mat1[k,k] - mat1[i+1,k]* mat1[k,j+1] ;

mat1[i+1,k]:=0;

end;

 

 

 

end;

end;

 

 

end;

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.