Ticket #12173: jack.patch

File jack.patch, 3.4 KB (added by jpflori, 10 years ago)

Change doctests in jack.py

  • sage/combinat/sf/jack.py

    # HG changeset patch
    # User Jean-Pierre Flori <jean-pierre.flor@ssi.gouv.fr>
    # Date 1338989132 -7200
    # Node ID 48c698c044c345c2dd7ac4402f0ced97a8a9c8ad
    # Parent  8c69bd678d1e911dba9c190ab2c86cad87a72bf3
    #12173: Change sign in doctests of jack.py
    
    diff --git a/sage/combinat/sf/jack.py b/sage/combinat/sf/jack.py
    a b  
    494494            sage: l = lambda c: [ (i[0],[j for j in sorted(i[1].items())]) for i in sorted(c.items())]
    495495            sage: P._m_cache(2)
    496496            sage: l(P._self_to_m_cache[2])
    497             [([1, 1], [([1, 1], 1)]), ([2], [([1, 1], -2/(-t - 1)), ([2], 1)])]
     497            [([1, 1], [([1, 1], 1)]), ([2], [([1, 1], 2/(t + 1)), ([2], 1)])]
    498498            sage: l(P._m_to_self_cache[2])
    499             [([1, 1], [([1, 1], 1)]), ([2], [([1, 1], 2/(-t - 1)), ([2], 1)])]
     499            [([1, 1], [([1, 1], 1)]), ([2], [([1, 1], -2/(t + 1)), ([2], 1)])]
    500500            sage: P._m_cache(3)
    501501            sage: l(P._m_to_self_cache[3])
    502             [([1, 1, 1], [([1, 1, 1], 1)]),
    503              ([2, 1], [([1, 1, 1], -6/(t + 2)), ([2, 1], 1)]),
    504              ([3], [([1, 1, 1], -6/(-t^2 - 3*t - 2)), ([2, 1], -3/(2*t + 1)), ([3], 1)])]
     502            [([1, 1, 1], [([1, 1, 1], 1)]), ([2, 1], [([1, 1, 1], -6/(t + 2)), ([2, 1], 1)]), ([3], [([1, 1, 1], 6/(t^2 + 3*t + 2)), ([2, 1], -3/(2*t + 1)), ([3], 1)])]
    505503            sage: l(P._self_to_m_cache[3])
    506             [([1, 1, 1], [([1, 1, 1], 1)]),
    507              ([2, 1], [([1, 1, 1], 6/(t + 2)), ([2, 1], 1)]),
    508              ([3], [([1, 1, 1], -6/(-2*t^2 - 3*t - 1)), ([2, 1], 3/(2*t + 1)), ([3], 1)])]
     504            [([1, 1, 1], [([1, 1, 1], 1)]), ([2, 1], [([1, 1, 1], 6/(t + 2)), ([2, 1], 1)]), ([3], [([1, 1, 1], 6/(2*t^2 + 3*t + 1)), ([2, 1], 3/(2*t + 1)), ([3], 1)])]
    509505        """
    510506        if n in self._self_to_m_cache:
    511507            return
     
    535531            sage: p11 = Partition([1,1])
    536532            sage: f = P._to_m(p2)
    537533            sage: f(p11)
    538             -2/(-t - 1)
     534            2/(t + 1)
    539535            sage: f(p2)
    540536            1
    541537            sage: f = P._to_m(p11)
     
    553549       
    554550            sage: P = JackPolynomialsP(QQ)
    555551            sage: P([1])^2 # indirect doctest
    556             (-2*t/(-t-1))*JackP[1, 1] + JackP[2]
     552            (2*t/(t+1))*JackP[1, 1] + JackP[2]
    557553            sage: P._m(_)
    558554            2*m[1, 1] + m[2]
    559555            sage: P = JackPolynomialsP(QQ, 2)
     
    683679       
    684680            sage: s = SFASchur(J.base_ring())
    685681            sage: J(s([3])) # indirect doctest
    686             ((-t^2+3*t-2)/(-6*t^2-18*t-12))*JackJ[1, 1, 1] + ((2*t-2)/(2*t^2+5*t+2))*JackJ[2, 1] + (1/(2*t^2+3*t+1))*JackJ[3]
     682            ((t^2-3*t+2)/(6*t^2+18*t+12))*JackJ[1, 1, 1] + ((2*t-2)/(2*t^2+5*t+2))*JackJ[2, 1] + (1/(2*t^2+3*t+1))*JackJ[3]
    687683            sage: J(s([2,1]))
    688684            ((t-1)/(3*t+6))*JackJ[1, 1, 1] + (1/(t+2))*JackJ[2, 1]
    689685            sage: J(s([1,1,1]))
     
    696692       
    697693            sage: J = JackPolynomialsJ(QQ)
    698694            sage: J([1])^2 #indirect doctest
    699             (-t/(-t-1))*JackJ[1, 1] + (1/(t+1))*JackJ[2]
     695            (t/(t+1))*JackJ[1, 1] + (1/(t+1))*JackJ[2]
    700696            sage: J([2])^2
    701             (-2*t^2/(-2*t^2-3*t-1))*JackJ[2, 2] + (-4*t/(-3*t^2-4*t-1))*JackJ[3, 1] + ((t+1)/(6*t^2+5*t+1))*JackJ[4]
     697            (2*t^2/(2*t^2+3*t+1))*JackJ[2, 2] + (4*t/(3*t^2+4*t+1))*JackJ[3, 1] + ((t+1)/(6*t^2+5*t+1))*JackJ[4]
    702698        """
    703699        return self( self._P(left) * self._P(right) )
    704700