Ticket #1797: 1797.patch

File 1797.patch, 892 bytes (added by mhansen, 15 years ago)
  • sage/combinat/sf/elementary.py

    # HG changeset patch
    # User Mike Hansen <mhansen@gmail.com>
    # Date 1200520084 28800
    # Node ID bd2d4ab37402a9ba12e92f94b6f53da9e6405f8e
    # Parent  6724ff0e26c8dfae00cfbb3815791b58136c7ca7
    Added doctest for expansion of elementary symmetric functions.
    
    diff -r 6724ff0e26c8 -r bd2d4ab37402 sage/combinat/sf/elementary.py
    a b class SymmetricFunctionAlgebraElement_el 
    8787            x0^3 + 3*x0^2*x1 + 3*x0*x1^2 + x1^3
    8888            sage: e([3]).expand(2)
    8989            0
     90            sage: e([2]).expand(3)
     91            x0*x1 + x0*x2 + x1*x2
    9092        """
    9193        e = eval('symmetrica.compute_' + str(classical.translate[self.parent().basis_name()]).lower() + '_with_alphabet')
    9294        resPR = PolynomialRing(self.parent().base_ring(), n, alphabet)