As a part of my research, I am trying to define some new operators in wolfram mathematica.
So far I've been able to use the existing special characters to this end. For example, the definition:
a_ \[LeftArrow] b_ := "great sucess"
Is working just fine, and can be cleared via
However, I want to define more operators with symbols that are not part of the special characters list. e.g.
(this obviously doesn't work)
Is there a way to create such a new special character so I could later define it as an operator?
In:= hugo := Overscript["\[LeftArrow]", "+"]
Also, Look at Format]. See the Documentation [on output formats and Format here
You can define a function and have it display as your special character or you can define a variable to display as a special character.
If I understand you correctly, these changes to symbols and formatting do not apply at the input level.
For example even after Hans' example I couldn't write:
Because the expression \[hugo] is still meaningless.
What I'm saying is that I want to create a new operator that can be used when writing expressions, and not just to format a function to look like use of an operator...
You want the notation package. Use the notation palette to make creating your notation easier.
Excellent, this is exactly it.
Many thanks, Neil!