The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Best syntax for derivative
Replies: 3   Last Post: Feb 13, 2009 3:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1,838
Registered: 12/6/04
Re: Best syntax for derivative
Posted: Feb 13, 2009 3:44 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Maybe you want

Derivative[0,1,0][f][x, y, z]


On Feb 12, 2009, at 4:41 AM, Aaron Fude 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

--Lou Talman
Department of Mathematical and Computer Sciences
Metropolitan State College of Denver


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.