Ticket #12404: 12404_examples.patch

File 12404_examples.patch, 1002 bytes (added by jdemeyer, 10 years ago)
  • sage/rings/polynomial/polynomial_element.pyx

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1338012670 25200
    # Node ID 5313cc79ae8f913d434f91d538ca49aa8179c763
    # Parent  a0fe12e7079b066945925e1b24eff0c80fcb900d
    Clarify some examples
    
    diff --git a/sage/rings/polynomial/polynomial_element.pyx b/sage/rings/polynomial/polynomial_element.pyx
    a b  
    56655665
    56665666            sage: K.<t> = FunctionField(GF(3))
    56675667            sage: R.<x> = K[]
    5668             sage: (x^3+2*x).is_squarefree()
     5668            sage: (x^3-x).is_squarefree()
    56695669            True
    5670             sage: (x^3+2).is_squarefree()
     5670            sage: (x^3-1).is_squarefree()
    56715671            False
    56725672            sage: (x^3+t).is_squarefree()
    56735673            True
     5674            sage: (x^3+t^3).is_squarefree()
     5675            False
     5676
     5677        In the following example, `t^2` is a unit in the base field::
     5678
    56745679            sage: R(t^2).is_squarefree()
    56755680            True
    56765681