Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12418
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How to calculate the partial derivative? |
| Date | 2012-11-22 09:40 +0000 |
| Message-ID | <k8kru3$84c$1@smc.vnet.net> (permalink) |
| References | <20121122004814.D4F1A6894@smc.vnet.net> |
| Organization | Time-Warner Telecom |
repl = {L1 -> a1 + b1*x + c1*y,
L2 -> a2 + b2*x + c2*y,
L3 -> a3 + b3*x + c3*y};
SetOptions[D, NonConstants -> {L1, L2, L3}];
NN = L1*L2;
DNex = D[NN, x] /. D[repl, x]
b2 L1 + b1 L2
DNex /. repl
b2 (a1 + b1 x + c1 y) + b1 (a2 + b2 x + c2 y)
Bob Hanlon
On Wed, Nov 21, 2012 at 7:48 PM, Tang Laoya <tanglaoya1989@gmail.com> wrote:
> Dear all,
>
> I am trying to calculate the partial derivative by mathematica, I have the following commands:
> L1=a1+b1*x+c1*y;
> L2=a2+b2*x+c2*y;
> L3=a3+b3*x+c3*y;
>
> NN=L1*L2;
>
> DNx=D[NN,x];
>
> I got the following result:
> DNex=b2 (a1+b1 x+c1 y)+b1 (a2+b2 x+c2 y)
>
> How to do to have the following result?
>
> DNex=b2*L1 + b1 * L2
>
>
> Thanks,
> Tang Laoya
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: How to calculate the partial derivative? Bob Hanlon <hanlonr357@gmail.com> - 2012-11-22 09:40 +0000
csiph-web