Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12435 > unrolled thread

Re: How to calculate the partial derivative?

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-11-23 08:35 +0000
Last post2012-11-23 08:35 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to calculate the partial derivative? Bob Hanlon <hanlonr357@gmail.com> - 2012-11-23 08:35 +0000

#12435 — Re: How to calculate the partial derivative?

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-11-23 08:35 +0000
SubjectRe: How to calculate the partial derivative?
Message-ID<k8ncgr$dk6$1@smc.vnet.net>
Use Simplify; however, the specific resultant form is determined by
the canonical order of the variables.

bb1 = -Det[{{1, 1, 1}, {y2, y3, y4}, {z2, z3, z4}}] // Simplify

y4 (-z2 + z3) + y3 (z2 - z4) + y2 (-z3 + z4)


-Det[{{1, 1, 1}, {y2, y3, y4}, {x2, x3, x4}}] // Simplify

x4 (y2 - y3) + x2 (y3 - y4) + x3 (-y2 + y4)


Bob Hanlon


On Thu, Nov 22, 2012 at 7:23 PM, Tang Laoya <tanglaoya1989@gmail.com> wrote:
> Dear Prof. Hanlon,
>
> Thank you very much for your kindly reply for my previous question.
>
> Now I have another question about factor:
>
> I wish mathematica give me an express which I can coding by Fortran with
> smallest number of floating operations. For example, if I have:
>
> bb1 = -Det[{{1, 1, 1}, {y2, y3, y4}, {z2, z3, z4}}];
>
> the result by mathematica is:
> y3 z2 - y4 z2 - y2 z3 + y4 z3 + y2 z4 - y3 z4
>
> I wish it output the result like this:
> z2 (y3-y4) - z3 (y2-y4) + z4 (y2-y3)
>
>
> What should I do?
>
>
> Thanks,
> Tang Laoya

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web