Ticket #6036: 12160.patch

File 12160.patch, 872 bytes (added by klee, 12 years ago)
  • sage/rings/polynomial/multi_polynomial.pyx

    # HG changeset patch
    # User Kwankyu Lee <ekwankyu@gmail.com>
    # Date 1242282583 -32400
    # Node ID 538a04abda71d2368064a629e4c05855fa11ce1d
    # Parent  1e1a3d3f43900d8b41c5786ad450cfb8f624c3ba
    added an example
    
    diff -r 1e1a3d3f4390 -r 538a04abda71 sage/rings/polynomial/multi_polynomial.pyx
    a b  
    375375            z^5 + x*w*k*z + w^5 + 17*x*w^3 + x^3 + 3*x*w + 5
    376376            sage: f.polynomial(k)
    377377            x*w*z*k + w^5 + z^5 + 17*x*w^3 + x^3 + 3*x*w + 5
     378            sage: R.<x,y>=GF(5)[]
     379            sage: f=x^2+x+y
     380            sage: f.polynomial(x)
     381            x^2 + x + y
     382            sage: f.polynomial(y)
     383            y + x^2 + x
    378384        """
    379385        cdef int ind
    380386        R = self.parent()