Re: perate matrix of derivations
- To: mathgroup at smc.vnet.net
- Subject: [mg39500] Re: perate matrix of derivations
- From: jf.alcover at bdpme.fr (jf alcover)
- Date: Thu, 20 Feb 2003 05:13:29 -0500 (EST)
- References: <b1l10v$i52$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
iselig at techunix.technion.ac.il (ilan) wrote in message news:<b1l10v$i52$1 at smc.vnet.net>...
> I want to make a matrix of derivations, so I will be able to multiply
> it by a matrix of functions and get the result matrix
> simple example:
>
> |d/dx 0 | |xy x| |y 1|
> | |.| |=| |
> |d/dy d/dx| |x+y 3| |x+1 0|
> thank you
Maybe the following solution could help :
In[1]:= dermat[der_?MatrixQ, mat_?MatrixQ] := Inner[#1[#2]&,der,mat];
In[2]:= dermat[{{D[#,x]&,0&},{D[#,y]&,D[#,x]&}},{{x y,x},{x+y,3}}]
Out[2]= {{y,1},{1+x,0}}