#10771: gcd and lcm for fraction fields
--------------------------------+-------------------------------------------
   Reporter:  SimonKing         |       Owner:  AlexGhitza             
       Type:  defect            |      Status:  needs_review           
   Priority:  major             |   Milestone:  sage-4.7               
  Component:  basic arithmetic  |    Keywords:  gcd lcm fraction fields
     Author:  Simon King        |    Upstream:  N/A                    
   Reviewer:  Marco Streng      |      Merged:                         
Work_issues:                    |  
--------------------------------+-------------------------------------------

Comment(by SimonKing):

 Replying to [comment:8 SimonKing]:
 > Oops, I forgot one aspect: If the gcd/lcm of the base ring raises an
 error, it should be caught. Implementing it now...

 Here it is:
 {{{
 sage: R.<q> = ZZ.extension(x^2+5)
 sage: gcd(q,q)
 1
 sage: gcd(q,0)
 1
 sage: gcd(R.zero(),0)
 0
 sage: lcm(q,q)
 1
 sage: lcm(q,0)
 0
 }}}

 Correct me if I am wrong, but I think that now every complaint is
 addressed.

 Best regards,

 Simon

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10771#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to