Message Boards Message Boards

0
|
7614 Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Nested partial derivative operators in Wolfram Language

Posted 10 years ago

Hello,

I am trying to evaluate some nasty derivatives for my splitting scheme. When I tried to do that with Mathematica, I encountered a problem with evaluating an expression of the form below and got an error message.

enter image description here

I would appreciate if anyone could point out how to get the syntax in the first line right in order for Mathematica to evaluate it like the second line.

Thanks, Peter

3 Replies

In your example, you are using typesetting. This typesetting is obfucasting the issue. Can you type out the actual code? This will make it much more clear what is happening. Write it out using the D and Derivative expressions.

Derivative expressions don't have addition defined on them. You could define that. Or you could just write out your new operator as a function:

myOperator[f_] := (Derivative[0, 1][f] + Derivative[1, 0][f]);

myOperator[f[x, y]]
POSTED BY: Sean Clarke

Dear Sean,

thank you for the very helpful example. This was what I was looking for.

Best regards, Peter

Simple code input:

In[1]:= f[x] D[g[x, v], v] + v D[g[x, v], x]
POSTED BY: S M Blinder
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