#3750: [with patch, needs work] Request for a "log" function for Sage integers
------------------------------+---------------------------------------------
 Reporter:  ljpk              |        Owner:  kcrisman  
     Type:  defect            |       Status:  assigned  
 Priority:  minor             |    Milestone:  sage-3.2.1
Component:  basic arithmetic  |   Resolution:            
 Keywords:                    |  
------------------------------+---------------------------------------------
Changes (by mabshoff):

  * summary:  [with patch, positive review] Request for a "log" function
              for Sage integers => [with patch, needs work]
              Request for a "log" function for Sage integers
  * milestone:  sage-3.2 => sage-3.2.1

Comment:

 When I merge integer-log-exp-final.patch I get one doctest failure:
 {{{
 [EMAIL PROTECTED]:/scratch/mabshoff/release-cycle/sage-3.2.alpha3$  ./sage -t
 -long devel/sage/sage/coding/linear_code.py
 sage -t -long devel/sage/sage/coding/linear_code.py
 **********************************************************************
 File "/scratch/mabshoff/release-cycle/sage-3.2.alpha3/tmp/linear_code.py",
 line 1123:
     sage: Cc = C.galois_closure(GF(2))
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.alpha3/local/lib/python2.5/doctest.py", line 1228, in __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_21[3]>", line 1, in <module>
         Cc = C.galois_closure(GF(Integer(2)))###line 1123:
     sage: Cc = C.galois_closure(GF(2))
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.alpha3/local/lib/python2.5/site-
 packages/sage/coding/linear_code.py", line 1141, in galois_closure
         if not(a.integer_part() == a):
     AttributeError: 'sage.rings.integer.Integer' object has no attribute
 'integer_part'
 **********************************************************************
 File "/scratch/mabshoff/release-cycle/sage-3.2.alpha3/tmp/linear_code.py",
 line 1124:
     sage: C; Cc
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.alpha3/local/lib/python2.5/doctest.py", line 1228, in __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_21[4]>", line 1, in <module>
         C; Cc###line 1124:
     sage: C; Cc
     NameError: name 'Cc' is not defined
 **********************************************************************
 File "/scratch/mabshoff/release-cycle/sage-3.2.alpha3/tmp/linear_code.py",
 line 1132:
     sage: c2 in Cc
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.alpha3/local/lib/python2.5/doctest.py", line 1228, in __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_21[9]>", line 1, in <module>
         c2 in Cc###line 1132:
     sage: c2 in Cc
     NameError: name 'Cc' is not defined
 **********************************************************************
 File "/scratch/mabshoff/release-cycle/sage-3.2.alpha3/tmp/linear_code.py",
 line 1541:
     sage: Cc = C.galois_closure(GF(2))
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.alpha3/local/lib/python2.5/doctest.py", line 1228, in __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_35[3]>", line 1, in <module>
         Cc = C.galois_closure(GF(Integer(2)))###line 1541:
     sage: Cc = C.galois_closure(GF(2))
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.alpha3/local/lib/python2.5/site-
 packages/sage/coding/linear_code.py", line 1141, in galois_closure
         if not(a.integer_part() == a):
     AttributeError: 'sage.rings.integer.Integer' object has no attribute
 'integer_part'
 **********************************************************************
 File "/scratch/mabshoff/release-cycle/sage-3.2.alpha3/tmp/linear_code.py",
 line 1547:
     sage: c2 in Cc
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.alpha3/local/lib/python2.5/doctest.py", line 1228, in __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_35[8]>", line 1, in <module>
         c2 in Cc###line 1547:
     sage: c2 in Cc
     NameError: name 'Cc' is not defined
 **********************************************************************
 2 items had failures:
    3 of  10 in __main__.example_21
    2 of   9 in __main__.example_35
 ***Test Failed*** 5 failures.
 For whitespace errors, see the file /scratch/mabshoff/release-
 cycle/sage-3.2.alpha3/tmp/.doctest_linear_code.py
          [30.6 s]
 exit code: 1024
 }}}

 Cheers,

 Michael

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