[Date Index] [Thread Index] [Author Index]
Re: Best syntax for derivative
Like this? In:= g[x_, y_, z_] := D[Sin[x y z], y]; g[x, y, z] Out= x z Cos[x y z] or like this? In:= g[x_, y_, z_] := \!\( \*SubscriptBox[\(\[PartialD]\), \(y\)]\ \(Sin[x\ y\ z]\)\); g[x, y, z] Out= x z Cos[x y z] ?? 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 -- Alexei Boulbitch, Dr., Habil. Senior Scientist IEE S.A. ZAE Weiergewan 11, rue Edmond Reuter L-5326 Contern Luxembourg Phone: +352 2454 2566 Fax: +352 2454 3566 Website: www.iee.lu This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.