Message Boards Message Boards

0
|
1239 Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:

Unexpected behavior of D[f, {array}, NonConstants -> f]

The following code

D[f[a, b, c, d], {{{a, b}, {c, d}}}]

gives as expected array derivative

{{Derivative[1, 0, 0, 0][f][a, b, c, d], Derivative[0, 1, 0, 0][f][a, b, c, d]}, 
 {Derivative[0, 0, 1, 0][f][a, b, c, d], Derivative[0, 0, 0, 1][f][a, b, c, d]}}

but

D[f, {{{a, b}, {c, d}}}, NonConstants -> f]

gives

{D[f, {a, b}, NonConstants -> {f}], D[f, {c, d}, NonConstants -> {f}]}

which is not an array derivative as I understand.

POSTED BY: Yaroslav Drachov

Yes, it looks like a bug. This would be a job for Dt, if only it mapped over arrays.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract