Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Transformation' topicStudent Support Forum > General > Archives > "Transformation"

Next Comment >Help | Reply To Topic
Author Comment/Response
Gopinath Venkatesan
08/24/07 12:15pm

Friends,

I think this is simple yet I could not get it. I have several equations that have many arrays, and some of the arrays are defined using common variables. I am posting a sample case below to give a picture of how it looks like.

m = 3;
kx = Table[A[i, j], {i, 1, m}, {j, 1, m}];
sx = Table[0, {i, 1, m}, {j, 1, m}];
Table[kx[[i, j]] = i j, {i, 1, m}, {j, 1, i - 1}];
Table[kx[[i, j]] = i j, {i, 1, m}, {j, i + 1, m}];
kx // MatrixForm

Table[sx[[i, i]] = i kx[[i, i]], {i, 1, m}];
sx // MatrixForm
kx /. sx -> 0 // MatrixForm
kx // MatrixForm
Table[kx[[i, i]] = 0, {i, 1, m}];
Print["What I was expecting is ", kx // MatrixForm]

My question is -- What should be used to apply transformation rules to elements of arrays so that resulting assignments are carried on to other definitions.

I tried, With[], Assuming[], but no use.

Thanks for suggestions.

Gopinath





Attachment: mathforumquestion_v1_082407.nb, URL: ,

Subject (listing for 'Transformation')
Author Date Posted
Transformation Gopinath Ven... 08/24/07 12:15pm
Re: Transformation Randy Silvers 08/26/07 06:46am
Re: Transformation Gopinath Ven... 08/27/07 09:06am
Re: Re: Transformation Randy Silvers 09/13/07 02:02am
Re: Re: Re: Transformation Gopinath Ven... 09/13/07 1:01pm
Re: Re: Re: Re: Transformation Forum Modera... 09/15/07 11:14am
Re: Re: Re: Re: Re: Transformation Gopinath Ven... 09/16/07 10:02pm
Re: Re: Re: Re: Re: Re: Transformation Forum Modera... 10/23/07 3:14pm
Re: Transformation Gopinath Ven... 08/27/07 11:04am
Next Comment >Help | Reply To Topic