Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Defining matrix of functions

Status
Not open for further replies.

Geraud

Structural
Joined
May 9, 2005
Messages
3
Location
FR
Hi,

I would like to create a matrix of functions (eg F(t)) by defining every component as a function of the indexes (eg Fp,q=p+q .

The thing is I cannot do it entering "F(t)pq=..." ("the left side cannot be defined(...)")

Has someone a solution ?

Thanks in advance,

Géraud
 
I'm not sure I understand what you are trying to do - can you give a bit more detail?


Bung
Life is non-linear...
 
Doesn't F(t,p,q):=whatever work?

Then say

t:15
p:0;5
q:0;5

Result[p,q:F(t,p,q)

will create a 6x6 array of answers based on F, t, and the location in the array

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Try using the build in MathCad function matrix(m,n,F)

This creates a matrix in which the ijth element contains F(i,j).
where:
p= 0,1..m-1 & q=0,1.. n-1.


This has a limit since the argument "F" is defined as a function of two variables only.

Result=matrix(m,n,F)

If that do not work for your application,try using he programming function in MathCad.
 
Thank you very much for helping me, I am going to apply your solutions.

Cheers

Géraud
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top