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

Formula for matrix production

  • January 24, 2025
  • 2 replies
  • 1233 views

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!

Best answer by LucMeekes

This also works:

LucMeekes_1-1737744674433.png

Success!
Luc

2 replies

23-Emerald IV
January 24, 2025

Try this:

LucMeekes_0-1737743146072.png

 

Success!
Luc

Ivan_Pat13-AquamarineAuthor
13-Aquamarine
January 24, 2025

@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
21-Topaz I
January 26, 2025

image.pngimage.png

t.t.
LucMeekes23-Emerald IVAnswer
23-Emerald IV
January 24, 2025

This also works:

LucMeekes_1-1737744674433.png

Success!
Luc

Ivan_Pat13-AquamarineAuthor
13-Aquamarine
January 24, 2025

@LucMeekes Thank you, it helped!

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

Ivan_Pat_0-1737750269428.png