MathGroup Archive 2007

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

Search the Archive

Re: Differentiation w.r.t. elements of lists


Jens-Peer Kuska wrote:

> Hi,
>
> and you are shure that
>
>  > Another, even shorter test case would be
>  >
>  > D[x[[i]], x[[j]]]
>  >
>  > which "should", IMHO, return KroneckerDelta[i,j].
>
> ??
>
> Than
> D[x[[1]],x[[2]]]
>
> should be zero ? right ?? but what is
>
> with
>
> x = {Sin[y], y}
>
> D[x[[1]], x[[2]]]
>
> the result is not 0 ..
>
> may be that you are wrong.
>
> Regards
>    Jens
>

OK, I think I had thought wrongly there.  But sadly that still doesn't
answer my main question:
Why does the second line result in 0, and what could I do better?

>> h[x_]:=Sum[x[[j]]^2,{j,1,Length[x]}]
>> D[h[x],x[[i]]]

--
Daniel Hornung
Max Planck Institute for Dynamics and Self-Organization
G=C3=B6ttingen, Germany


  • Prev by Date: Re: Ploting solution sets to compound inequalites
  • Next by Date: Re: Other PDE heat equation
  • Previous by thread: Re: Differentiation w.r.t. elements of lists
  • Next by thread: Re: Differentiation w.r.t. elements of lists