cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Pivotisation of a matrix - I try to change an existing file that works with another scheme

tubar
Amethyst

Pivotisation of a matrix - I try to change an existing file that works with another scheme

Pivotisation of a matrix - I try to change an existing file that works with another scheme

 

Hello,

I have a Mathcad file that do the pivotisation of a matrix but I dont like it because is too indirect and obscure.

 

I want to implement another scheme that is more explicit and easily understanding but does not works by now. I attached my working file that also contains the scheme that i try to implement.

tubar_0-1591457022151.png

 

4 REPLIES 4

Re: Pivotisation of a matrix - I try to change an existing file that works with another scheme

In your Piv(Aug)  function, you let i run through all rows (from 1 to n), then you start k at i+1. That is bound to fail when i=n, because then k=n+1, which is out of range.

Potential remedy:  in the first FOR statement, change:

"for i e 1..n"  =>  "for i e 1..n-1"

 

Success!
Luc

 

Re: Pivotisation of a matrix - I try to change an existing file that works with another scheme

I found the solution. Thks!

I attached the file.

Re: Pivotisation of a matrix - I try to change an existing file that works with another scheme

Hi,

 

Is this  where you are ultimately heading.

 

Capture.JPG

 

Cheers

Terry

Re: Pivotisation of a matrix - I try to change an existing file that works with another scheme

Thank you,

 

It is also useful that function, but I am interested on Mathcad programming technics so that to use minimally the direct prefabricated functions.

Announcements