Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Best syntax for derivative

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96440] Re: Best syntax for derivative
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Fri, 13 Feb 2009 03:47:04 -0500 (EST)
  • References: <gn11tc$8e0$1@smc.vnet.net>

Aaron,

I'd suggest

f[x_, y_, z_] := Sin[x*y*z]
g[x_, y_, z_] := Derivative[0, 1, 0][f][x, y, z]

If you like, you can improve the looks of it by selecting  Derivative
[0, 1, 0][f] and converting it to StandardForm

Cheers -- Sjoerd


On Feb 12, 1:41 pm, Aaron Fude <aaronf... at gmail.com> wrote:
> Hi,
>
> Suppose I have a function of three variables
>
> f[x_, y_, z_]:=Sin[x y z]
>
> And I want to construct g[x, y, z] which is the partial derivative of f
> [] with respect to y. I do
>
> f[x_, y_, z_] := Sin[x y z]
> g[x_, y_, z_] := D[f[x, temp, z], temp] /. temp -> y
>
> but I'm sure there is something better. Something along the lines of
>
> g = Partial[f, 2]
>
> Many thanks in advance.
>
> Aaron



  • Prev by Date: Chain Matrix
  • Next by Date: Re: Definition of the similarity in a set of integers
  • Previous by thread: Re: Best syntax for derivative
  • Next by thread: Re: Best syntax for derivative