#5407: [with patch; needs work] fractional gens?  not good -- (QQ^3).gen(4/3)
gives (0,1,0)
----------------------------+-----------------------------------------------
 Reporter:  was             |       Owner:  was     
     Type:  defect          |      Status:  new     
 Priority:  major           |   Milestone:  sage-3.4
Component:  linear algebra  |    Keywords:          
----------------------------+-----------------------------------------------

Comment(by mabshoff):

 One doctest failure:
 {{{
 mabsh...@sage:/scratch/mabshoff/sage-3.4.alpha1$ ./sage -t -long
 devel/sage/sage/modules/free_module.py
 sage -t -long "devel/sage/sage/modules/free_module.py"
 **********************************************************************
 File
 "/scratch/mabshoff/sage-3.4.alpha1/devel/sage/sage/modules/free_module.py",
 line 1438:
     sage: (QQ^3).gen(4/3)
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/sage-3.4.alpha1/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/scratch/mabshoff/sage-3.4.alpha1/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/scratch/mabshoff/sage-3.4.alpha1/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_37[7]>", line 1, in <module>
         (QQ**Integer(3)).gen(Integer(4)/Integer(3))###line 1438:
     sage: (QQ^3).gen(4/3)
       File "/scratch/mabshoff/sage-3.4.alpha1/local/lib/python2.5/site-
 packages/sage/modules/free_module.py", line 1445, in gen
         return self.basis()[i]
       File "rational.pyx", line 236, in
 sage.rings.rational.Rational.__index__ (sage/rings/rational.c:4371)
     TypeError: rational is not an integer
 **********************************************************************
 }}}

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5407#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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