title: Is there a Kronecker symbol in Maple?
body: <p>The kronecker-symbol for two integers <code>n,m</code> is defined as <code>1</code> if <code>n=m</code> and <code>0</code> otherwise.</p>
  
  <p>Is there an inbuilt kronecker-symbol in maple or an easy way to implement it?</p>
  
  <p>Sorry, if I should have overlooked something trivial, the maple-homepage is down at the moment and google did not return anything helpful.</p>
  
  <p><strong>Edit:</strong> I Just found something useful <a href="http://www.digi-area.com/Maple/atlas/help/delta.php" rel="nofollow">here</a>:</p>
  
  <pre><code>restart:
  delta := table(symmetric,identity);
  simplify(delta[1,2]);
  simplify(delta[1,1]);
  
          delta := TABLE(symmetric, identity, [])
                             0
                             1
  </code></pre>
  
  <p>However it does not seem to simplify even trivial expressions with symbols:</p>
  
  <pre><code>simplify(delta[n,n]);
  simplify(delta[n,n+1]);
  
                        delta[n, n]
                      delta[n, n + 1]
  </code></pre>
  
  <p>where one would expect to obtain <code>1</code> and <code>0</code>, respectively.</p>
  
  <p><strong>Edit 2:</strong> I also tried it this way:</p>
  
  <pre><code>restart:
  delta := proc(n,m):
      if n=m then 1 else 0 fi;
  end;
  delta(1,2);
  delta(1,1);
  delta(n,n);
  
  0
  1
  1
  </code></pre>
  
  <p>However, this also works poorly for symbols, as </p>
  
  <pre><code>delta(n,m);
  </code></pre>
  
  <p>returns <code>0</code>.</p>