I came across a bit of code that uses the syntax /: and I don't know what it does. I can't find its documentation, or maybe I'm just not looking properly. The code snippet is something like:
F/:F[A___,b_?NumberQ B_, C___] := b*F[A,B,C]
(i.e. part of the definition of multi-linearity). How does this behave differently than the following?:
G[A___,b_?NumberQ B_, C___] := b*G[A,B,C]
Thanks!
/:part of the expression. Press F1. The help file should give links to the relevant functions. – J. M.'s missing motivation May 03 '12 at 17:42/:into the doc center and see what comes up – rm -rf May 03 '12 at 17:43TagSetin docs – kglr May 03 '12 at 17:44OwnValues(variables) andDownValues(functions), you can useSetDelayed(:=) with the same effect. But forUpValues(which are another kind of global rules), you need to useTagSetDelayed(/:), or perhapsUpSetDelayed(although I favor the former). – Leonid Shifrin May 03 '12 at 18:00