Skip to main content
13-Aquamarine
Jan 24, 2025 5:46 PM UTC
Solved

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!

LucMeekesAnswer
23-Emerald V
Jan 24, 2025 6:52 PM UTC

This also works:

LucMeekes_1-1737744674433.png

Success!
Luc

7 replies

23-Emerald V
Jan 24, 2025 6:14 PM UTC

Try this:

LucMeekes_0-1737743146072.png

 

Success!
Luc

Translate
Ivan_Pat13-AquamarineAuthor
13-Aquamarine
Jan 24, 2025 8:26 PM UTC

@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...

Translate
ttokoro
21-Topaz I
Jan 26, 2025 1:08 AM UTC

image.pngimage.png

Translate
t.t.
LucMeekes23-Emerald VAnswer
23-Emerald V
Jan 24, 2025 6:52 PM UTC

This also works:

LucMeekes_1-1737744674433.png

Success!
Luc

Translate
Ivan_Pat13-AquamarineAuthor
13-Aquamarine
Jan 24, 2025 8:24 PM UTC

@LucMeekes Thank you, it helped!

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

Ivan_Pat_0-1737750269428.png

 

Translate