MathGroup Archive 2009

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

Search the Archive

Re: Best syntax for derivative

  • To: mathgroup at
  • Subject: [mg96413] Re: [mg96386] Best syntax for derivative
  • From: Carl Woll <carlw at>
  • Date: Fri, 13 Feb 2009 03:42:06 -0500 (EST)
  • References: <>

Aaron Fude wrote:

>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.

g = Derivative[0, 1, 0][f]

Carl Woll
Wolfram Research

  • Prev by Date: Problem with DSolve
  • Next by Date: What's up with missing contour labels in Mathematica 7.0.0 (OS X/Intel)?
  • Previous by thread: Best syntax for derivative
  • Next by thread: Re: Best syntax for derivative