Skip to main content
13-Aquamarine
January 29, 2025
Solved

Mathcad programming

  • January 29, 2025
  • 1 reply
  • 1226 views

In the attached file below if i give sub = stack(sub,RA) at the end of program, it gives same options multiple times. 
could someone please explain, why the program does that?
can't attach Mathcad sheet.

NM_10165576_0-1738133409798.png

 

Best answer by terryhendicott

Hi 

I notice three things that may not make a difference.

Your top row of the result are all zeros.  by Default matrices and vectors start with index 0 not 1.  This can be changed.

You should return the required value specifically for good programming practice

Capture2.JPG

There is an extra vertical line that is not needed.  Carefully click arrow on the line till it turns blue then press delete.

Capture.JPG

1 reply

21-Topaz II
January 29, 2025

Hi 

I notice three things that may not make a difference.

Your top row of the result are all zeros.  by Default matrices and vectors start with index 0 not 1.  This can be changed.

You should return the required value specifically for good programming practice

Capture2.JPG

There is an extra vertical line that is not needed.  Carefully click arrow on the line till it turns blue then press delete.

Capture.JPG

13-Aquamarine
January 30, 2025

Thank you for the reply.

 

Community Moderator
February 5, 2025

Hello @NM_10165576

 

It looks like you have a response from a community member. If it helped to answer your question please mark the reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.