Message Boards Message Boards

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

LeviCivitaTensor[] in Action

Posted 11 years ago

This is tremendous

LeviCivitaTensor Reference vs. Notebook

but despite it works and is documented as well, the Notebook complains about the second argument to LeviCivitaTensor[]

POSTED BY: Udo Krause
2 Replies

If you need a quick fix, then evaluate the following (or put it into your init.m):

LeviCivitaTensor;
Unprotect[LeviCivitaTensor];
SyntaxInformation[LeviCivitaTensor] = {"ArgumentsPattern" -> {_, _.}};
Protect[LeviCivitaTensor];

Now the highlighter is aware of the possible second argument and everything looks fine:

Mathematica graphics

POSTED BY: Patrick Scheibe

NOW (after three readings) I understand. LeviCivitaTensor works, but the FrontEnd syntax checking has not been told that it can take a second argument. (Also the reason the second argument is in red.)

That I can report.

enter image description here

See the attached notebook for the code and outputs.

Attachments:
POSTED BY: Bruce Miller
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