Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'm using CircleTimes ($\otimes$) operator defined as

a_\[CircleTimes]b_ := KroneckerProduct[a, b]

so I can use a ESC c* ESC b to write $a\otimes b$ instead of KroneckerProduct[a, b]. What should I do in order to find out the definition of the $\otimes$ symbol using Information function or assign a usage to this symbol?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

From the documentation:

Mathematica follows the general convention that the function associated with a particular operator should have the same name as the special character that represents that operator.

Therefore the Symbol associated with the character \[CircleTimes] is simply CircleTimes.

a_\[CircleTimes]b_ := KroneckerProduct[a, b]

Definition[CircleTimes]
a_\[CircleTimes]b_ := KroneckerProduct[a, b]

You can select the operator and press F1 to bring up the documentation page, e.g. CircleTimes.

share|improve this answer
1  
Thanks. So I guess that it is better to define this operator as CircleTimes[x_,y_] := KroneckerProduct[x,y]; –  Jarek Miszczak Aug 29 '13 at 10:51
    
@Jarek No, your original definition is perfectly acceptable. What did you infer that made you think otherwise? –  Mr.Wizard Aug 29 '13 at 10:54
1  
I know that the first one work fine, but I think it is more consistent if I use the second, since I can add usage to CircleTimes but not to $\otimes$ (CircleTimes::usage ="" is OK, but $\otimes$::usage not). Besides using $\otimes$ in a package is problematic. –  Jarek Miszczak Aug 29 '13 at 11:27
    
@Jarek As you see fit. Since I appreciate brevity I would use the operator form where it works, and the long form where it doesn't. At least you now know what you're working with. –  Mr.Wizard Aug 29 '13 at 11:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.