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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

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

tubar
14-Alexandrite

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
LucMeekes
23-Emerald III
(To:tubar)

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

 

tubar
14-Alexandrite
(To:LucMeekes)

I found the solution. Thks!

I attached the file.

Hi,

 

Is this  where you are ultimately heading.

 

Capture.JPG

 

Cheers

Terry

tubar
14-Alexandrite
(To:terryhendicott)

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

Top Tags