Is there an easier way to enter KroneckerDelta[n,m]
in Mathematica?
When I use the notation $ \delta_{n,m} $, it won't work.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityIs there an easier way to enter KroneckerDelta[n,m]
in Mathematica?
When I use the notation $ \delta_{n,m} $, it won't work.
Just
Subscript[\[Delta], m_, n_] := KroneckerDelta[n, m]
or am I missing something?
^:=
so that the rule gets attached to \[Delta]
instead of Subscript
$\endgroup$
– celtschk
Apr 25 '14 at 16:38
You can use the Notation
package.
<< Notation`
Use the Notation
palette that automatically pops up to define the required notation.
Notation[Subscript[\[Delta], m_, n_] \[DoubleLongLeftRightArrow] KroneckerDelta[m_, n_]]
NOTE: This is only a "summary" of the required definition. You have to enter the full definition using the (first button on the) Notation
palette, and then fill in the placeholders. You can enter the lefthand placeholder as $\delta_{m\_,n\_}$.
Now check that your input generates the intended FullForm
expression. You can enter Subscript[\[Delta], m, n]
as $\delta_{m,n}$.
Subscript[\[Delta], m, n] // FullForm
(* KroneckerDelta[m, n] *)
delta[m_,n_]:=KroneckerDelta[m,n]
if you like :) $\endgroup$ – Öskå Apr 23 '14 at 13:52TraditionalForm
equation cell, and then copy the equation into an input cell. That cell can then be evaluated if you allow Mathematica to interpretTraditionalForm
input in the resulting dialog box. If you want more streamlined input, this is essentially the same as: Can I enter the traditional form for Binomial as input in an expression? $\endgroup$ – Jens Apr 23 '14 at 14:28