(*args)
return prod(
        prod(args[j] - args[i] for j in xrange(i + 1, n))
        / factorial(i) for i in xrange(n))
Evaluate Levi-Civita symbol.
Evaluate Levi-Civita symbol.
Evaluate Levi - Civita symbol .
def eval_levicivita(*args):
    """Evaluate Levi-Civita symbol."""
    from sympy import factorial
    n = len(args)
    return prod(
        prod(args[j] - args[i] for j in xrange(i + 1, n))
        / factorial(i) for i in xrange(n))
def eval_levicivita ( * args ) : from sympy import factorial n = len ( args ) return prod ( prod ( args [ j ] - args [ i ] for j in xrange ( i + 1 , n ) ) / factorial ( i ) for i in xrange ( n ) )