Skip to main content
1-Visitor
April 30, 2019
Solved

Symbolic matrix construction

  • April 30, 2019
  • 1 reply
  • 5105 views

I try to create a symbolic matrix (in my example, the matrix RES  ). 

The problem is that I cannot have the result in the form of a matrix, the only way to obtain what I want is to say that RES is not a matrix and is depending on two others variables corresponding to the indexes of the "matrix" (RES2 solution in the attached file question.xmcd). However, I need to use this result after and I need to have the result in the form of matrix.

 

How can I do to obtain my result in the form of a matrix ?

 

Thanks !

Best answer by terryhendicott

Hi,

Capture.PNG

You cannot index a function at its definition.  Mathcad is looking for the name of a variable to index.

The second function definition does work as it does a number of summations that return a single value as a result of the function.

You can define a matrix that uses this function.  Is this what you are after?

Capture-3.PNG

Warning.  by default Mathcad indexes matrices from 0,0 unless you redefine ORIGIN worksheet variable.

Cheers

Terry

1 reply

21-Topaz II
April 30, 2019

Hi,

Capture.PNG

You cannot index a function at its definition.  Mathcad is looking for the name of a variable to index.

The second function definition does work as it does a number of summations that return a single value as a result of the function.

You can define a matrix that uses this function.  Is this what you are after?

Capture-3.PNG

Warning.  by default Mathcad indexes matrices from 0,0 unless you redefine ORIGIN worksheet variable.

Cheers

Terry

JuFlo1-VisitorAuthor
1-Visitor
April 30, 2019

 

 

Thanks for your response !

21-Topaz II
April 30, 2019

Hi,

The answer would not be complete now we know the intent.

You can define the matrix with a quicker notation using the values of r and s you defined.

In this case a name is used in the definition so you can use indexes

Remember by default matrices start at index zero.

Capture.PNG

Cheers

Terry