Message Boards Message Boards

0
|
4455 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Application rules in Mathematica functions

Posted 3 years ago

Hello everybody, I have a question related with the application rules in a defined function in Mathematica. The following script provides the use of Wick theorem, so, after defining the function 'fourfields' corresponding to the application of the Wick theorem for four fields, I applied some rules (deffnitionsff and rules). However as you can see there, the rules do not work. But, if I defined a new function fourfieldscopy which is just the copy-paste of the fourfield's output, it works!! I really appreciate if anyone can suggest me how to rewrite the code such that 'fourfields' function accepts the rules and make the process automatically. Thanks.

POSTED BY: Xavier Orj
2 Replies
Posted 3 years ago

Compare FullForm@fourfields and FullForm@fourfieldscopy.

POSTED BY: Rohit Namjoshi
Posted 3 years ago

Thanks a lot Rohit. Yes, there is a quite difference between both definitions. Now, the problem is solved by just rewriting the expression such that they get the same format.

POSTED BY: Xavier Orj
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