#11553: Matrix morphism additions
------------------------------+---------------------------------------------
   Reporter:  rbeezer         |          Owner:  jason, was  
       Type:  enhancement     |         Status:  needs_review
   Priority:  minor           |      Milestone:  sage-4.7.2  
  Component:  linear algebra  |       Keywords:              
Work_issues:                  |       Upstream:  N/A         
   Reviewer:                  |         Author:  Rob Beezer  
     Merged:                  |   Dependencies:  #11552      
------------------------------+---------------------------------------------

Comment(by mmarco):

 The surjectivity test doesn't work fine over other euclidian domains:


 {{{
 sage: R=PolynomialRing(QQ,'x')
 sage: A=FreeModule(R,2)
 sage: B=FreeModule(R,2)
 sage: H=A.hom([B([x^2-1,1]),B([x^2,1])])
 sage: H
 Free module morphism defined by the matrix
 [x^2 - 1       1]
 [    x^2       1]
 Domain: Ambient free module of rank 2 over the principal ideal domain ...
 Codomain: Ambient free module of rank 2 over the principal ideal domain
 ...
 sage: H.image()
 Free module of degree 2 and rank 2 over Univariate Polynomial Ring in x
 over Rational Field
 Echelon basis matrix:
 [ 1  0]
 [ 0 -1]
 sage: H.is_surjective()
 False
 sage: H.is_injective()
 True
 sage: H.inverse()
 Free module morphism defined by the matrix
 [      -1        1]
 [     x^2 -x^2 + 1]
 Domain: Ambient free module of rank 2 over the principal ideal domain ...
 Codomain: Ambient free module of rank 2 over the principal ideal domain
 ...
 sage: H.is_identity()
 False

 }}}


 But


 {{{
 sage: F=A.hom([B([x^2-1,1]),B([-x^2,-1])])
 sage: F.image()
 Free module of degree 2 and rank 2 over Univariate Polynomial Ring in x
 over Rational Field
 Echelon basis matrix:
 [1 0]
 [0 1]
 sage: F.is_surjective()
 True
 sage: F.is
 sage: F.is_identity()
 False
 }}}


 I think the problem is in ticket 11552, it still needs work.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11553#comment:2>
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