26 votes

List of symbols without built-in meaning

Updated to include both unary and binary operators One idea is to use the usage message of a symbol as a clue that it has a special display form, probably with no built-in meaning. For example: <...
  • 127k
24 votes
Accepted

Shorthand for map at level 2

Corrected to use SubscriptBox as Rojo showed and Kvothe commented, fixing binding. Rojo shows a way in Is it possible to define custom compound assignment ...
  • 267k
20 votes

Having the derivative be an operator

Update I've created a paclet. Install with: ...
  • 127k
19 votes

How can I tell Mathematica to interpret 0xffff as a hexadecimal number?

Update As pointed out by @Edmund, my initial answer didn't work with hex numbers starting with an integer. To fix that, I included an initial \[DiscretionaryHyphen]...
  • 127k
16 votes

Defining indefinitely many functions

Agree with other answers, this is a bad idea (why, precisely do you want to do this?), but in the spirit of encouraging unmaintainable write-once read-never code, here's my entry into the freak show: ...
14 votes

Shorthand for map at level 2

I'm not aware of a simple one, but perhaps you could make your own? The following is not great because it requires you to enter CenterDot as Esc+.+Esc, and you can'...
  • 22.4k
13 votes

Can symbols like + or * be used to denote the Plus and Times functions?

You can use the Notation package. It requires a GUI palette though. Needs["Notation`"] Once you have this package loaded, ...
  • 4,256
12 votes

Defining indefinitely many functions

Just to be clear, I think this is a terrible idea but nevertheless, a question has been posed for which there is a simple answer: ...
  • 87.7k
12 votes

How to use `in` for MemberQ

The big issue here is that is a system defined symbol and messing with it in this way can have all manner of unintended consequences. You don't know what is ...
  • 40.7k
12 votes
Accepted

Is it possible to write time derivatives with the dot notation?

I can't test robustness, because I don't know what your work flow is, but one can Format the expression: ...
  • 22.4k
11 votes
Accepted

Redefining a built-in operator

Use upvalues. You don't want || to change its behavior except when it's operating on impedances. So, use a wrapper (z[ ], say) around the quantities that represent impedances, and associate upvalues ...
  • 13.6k
11 votes

List of symbols without built-in meaning

Here is an approach based on reading the Front End resource UnicodeCharacters.tr. This method finds some operators that do not presently appear in Carl Woll's list ...
  • 267k
10 votes

How to imitate list comprehensions for constant arrays?

The Notation package is not necessary to use an infix form of \[Star] as that is handled automatically. Also I recommend ...
  • 267k
10 votes

Redefining a built-in operator

I don't like the idea of redefining Or (||). Rather, I would suggest defining a function with the name ...
  • 107k
10 votes

Can we use letter with a subscript as a variable in Mathematica?

You can also do this: << Notation` Symbolize[ParsedBoxWrapper[SubscriptBox["_", "_"]]] If you want to, you can import the Notation package first, then use ...
  • 305
10 votes

Series with specific notation

I think SeriesCoefficient is what you want. Then you can use it to display formatted formulas ...
  • 43.2k
10 votes

What are the differences between using MakeBoxes and Interpretation?

Assuming that you want to create a special display form for foo that can be used in all contexts, you should use neither of these solutions. Why? ...
  • 231k
10 votes

How can I tell Mathematica to interpret 0xffff as a hexadecimal number?

One approach is to the use that Notation Package's AddInputAlias function to setup an alias that will convert Esc 0x Esc to 16^^ ...
  • 40.7k
9 votes
Accepted

Dot in place of prime to denote differentiation

Maybe this? OverDot[f_, n_Integer] := Derivative[n][f] It really only works for . and ...
  • 226k
9 votes

One line definition of a symbol with plus-minus

The most robust way I know of would be to use the built in Notation package and write something like ...
  • 1,130
9 votes

Can symbols like + or * be used to denote the Plus and Times functions?

For Plus, there's this, from How would I add together any list of arguments as a pure function?: +Sequence[1, 2, 3] (* 6 *)
  • 226k
9 votes

How to use `in` for MemberQ

To avoid any conflict with the built-in symbol for \[Element], I would use the small element symbol, instead (this is a ...
  • 96.2k
9 votes
Accepted

What are the differences between using MakeBoxes and Interpretation?

Point of conversion A large and perhaps key difference is that MakeBoxes (foo) only transforms the expression into the expanded ...
  • 267k
9 votes

How can I automatically replace [[ and ]] with the \[LeftDoubleBracket] and \[RightDoubleBracket] operators?

You can use CellEpilog to modify the contents of the cell upon evaluation: ...
  • 30.2k
9 votes

How can I automatically replace [[ and ]] with the \[LeftDoubleBracket] and \[RightDoubleBracket] operators?

Here is a stylesheet solution modeled after Lucas' answer, except that I use CellEventActions to tie the transformation to a keyboard short cut: ...
  • 127k
9 votes
Accepted

Making ^ work as MatrixPower for matrices

One way to do it is to use Notation package. ...
  • 878
8 votes

How to use Feynman slash notation?

Here is a palette that does the slashing when you select a character and press the button: ...
  • 96.2k
8 votes

Seeking more verbose syntax, e.g. "Then" -> ","

This still requires some commata and also additional brackets, but it might be somewhat more legible. ...
8 votes
Accepted

Defining new brackets

One way of doing this is to use $Preprint: First define the variables you want to print with double brackets. Then define a ...
  • 37.7k
7 votes

Redefining a built-in operator

(I would love to hear from someone more knowledgeable about how to improve this answer.) It is possible to redefine the || operator if you're willing to redefine ...

Only top scored, non community-wiki answers of a minimum length are eligible