Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- simplify program if possible

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-24-2014
06:24 PM

01-24-2014
06:24 PM

dear ptc community - thanks to mike (num 1) i believe am starting a discussion right - please see attachment and see if someone will comment on it - thanks joe

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-24-2014
07:04 PM

01-24-2014
07:04 PM

I am not sure if I fully understand what you need, but I hope that the attached file will help.

I think its best to turn your calculation in a function which has the matrix as parameter.

First routine will work for a matrix with exactly 4 columns only:

The second routine is more versatile and will take a matrix of any dimensions - columns are speakers/resistors in series and all columns are parallel:

EDIT: Here is a more compact version of the latter:

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-24-2014
07:04 PM

01-24-2014
07:04 PM

I am not sure if I fully understand what you need, but I hope that the attached file will help.

I think its best to turn your calculation in a function which has the matrix as parameter.

First routine will work for a matrix with exactly 4 columns only:

The second routine is more versatile and will take a matrix of any dimensions - columns are speakers/resistors in series and all columns are parallel:

EDIT: Here is a more compact version of the latter:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-04-2014
04:24 AM

02-04-2014
04:24 AM

Re: simplify program if possible

i was delighted to get yur response! however i was not able to duplicate yur 2nd routine(program) - i presume you wrote it in prime 3 - i also tried on prime 2 with no success - my problem is that i cannot enter R[tot](M) as you did - what may be my problem?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-04-2014
07:14 AM

02-04-2014
07:14 AM

Re: simplify program if possible

joe lopez wrote:

i was delighted to get yur response! however i was not able to duplicate yur 2nd routine(program) - i presume you wrote it in prime 3

Correct. We can't tell from the file extension which version of Prime a file stems from. Unfortunately PTC provides no way to convert/save a P3 file in P2 format - incredible, but true. Opening a P3 file with P2 will result in just an empty worksheet. From your profile I see you are under maintainance. so I guess you should be entitled to upgrade to P3, I guess.

Generally its a good idea to state which version of Mathcad a question is related to.

my problem is that i cannot enter R[tot](M) as you did - what may be my problem?

I cant't tell from your description what your problem could be as you didn't state what you tried and what did not work in which way. You have to use the programming menu to enter that function definition. Being under maintainance you don't use Prime Express, I think, otherwise programming would not be allowed.

Find attached the vital parts redone in Prime2 format and also a pdf of the original document (but I think my screenshots covered all anyway).

The variable ORIGIN used in my original sheet was just to ensure that the routine would work even if you intend to change that system variable to something else. If you leave it at the default zero you may do it as in the attached P2 file.