MathGroup Archive 2004

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

Search the Archive

Re: Partial derivation with regards to variables in a list


"Christopher grinde" <christopher.grinde at hive.no> schrieb im Newsbeitrag
news:cjgimt$q6i$1 at smc.vnet.net...
> Hello.
>
> I need to find the partial derivative with regards to variables in a list.
>
> The straight forward syntax would be
> D[f[a,b,c,d,e,],a,b,c,d,e]
>
> My problem is that I don't know the variables up front of finding the
> derivative.
>
> I've tried Apply[], but as I am quite new to Mathematica, I haven't been
> able to use Apply[] with functions with more than one argument.
>
> Please advice.
>
> -- 
> Christopher Grinde
>
Apply[D,Prepend[f[a,b,c,d,e],{a,b,c,d,e}]

or, slightly more general (and less typing):

D @@ Flatten[{f[a, b, c], {{a, 2}, b, {c, 3}}}, 1] to obtain multiple
derivatives
-- 
Peter Pein, Berlin
to write to me, start the subject with [



  • Prev by Date: Re: unevaluated, hold, holdform
  • Next by Date: Suggestion to WRI for notebook navigation (frontend)
  • Previous by thread: Re: Partial derivation with regards to variables in a list
  • Next by thread: Re: Partial derivation with regards to variables in a list