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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Translate the entire conversation x

Formula for matrix production

Ivan_Pat
12-Amethyst

Formula for matrix production

Hi there!

I have an issue with the definition of the Prime user function.

There are several matrices 2*2 in the general case ( the exact matrix number oscillates from 1 to 4-5-6).

Each matrix has a lowercase index (connected to the data from the parameters table). I want to define user function to make matrix production. Due to my modest coding skills, I have no results to describe as appropriate. The relevant search on the forum gave some material but didn't seem to help. 

https://community.ptc.com/t5/Mathcad/Production-of-Matrices-Elements/m-p/676964 

In the attachment, there is my problem sample, performed in Prime 10.0.0

 

Any assistance would be appreciated!

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:Ivan_Pat)

This also works:

LucMeekes_1-1737744674433.png

Success!
Luc

View solution in original post

7 REPLIES 7
LucMeekes
23-Emerald III
(To:Ivan_Pat)

Try this:

LucMeekes_0-1737743146072.png

 

Success!
Luc

Ivan_Pat
12-Amethyst
(To:LucMeekes)

@LucMeekes

Thanks, but this is beyond my level of understanding...🙈

By the way, paid attention to the similarity to the IF condition in my second reply...

ttokoro
21-Topaz I
(To:Ivan_Pat)

image.pngimage.png

Ivan_Pat
12-Amethyst
(To:ttokoro)

@ttokoro Thank you for such an elegant piece of code solution!

Ivan_Pat
12-Amethyst
(To:LucMeekes)

Thank you for your support and understanding dear Luc. I just want to know, why I cannot see this post at PC after you picked a picture of how matrix product could be programmable solved.
I reply from my cellphone.

LucMeekes
23-Emerald III
(To:Ivan_Pat)

This also works:

LucMeekes_1-1737744674433.png

Success!
Luc

Ivan_Pat
12-Amethyst
(To:LucMeekes)

@LucMeekes Thank you, it helped!

I modified your code with the IF condition a little for A=1.

Ivan_Pat_0-1737750269428.png

 

Announcements

Top Tags