#9814: Improve creation time for p-adic elements
--------------------------------+-------------------------------------------
   Reporter:  roed              |       Owner:  AlexGhitza   
       Type:  enhancement       |      Status:  needs_work   
   Priority:  minor             |   Milestone:  sage-4.5.3   
  Component:  basic arithmetic  |    Keywords:  padic, p-adic
     Author:  roed              |    Upstream:  N/A          
   Reviewer:                    |      Merged:               
Work_issues:                    |  
--------------------------------+-------------------------------------------
Changes (by dmharvey):

  * status:  needs_review => needs_work


Comment:

 seems to work as advertised, but I get lots of doctest failures with
 -testall, typical example is like this:

 {{{
 File
 
"/Users/david/sage-4.5.2/devel/sage/sage/rings/padics/padic_generic_element.pyx",
 line 1002:
     sage: R3(-1).square_root() == R3.teichmuller(2) or
 R3(-1).square_root() == R3.teichmuller(3)
 Exception raised:
     Traceback (most recent call last):
       File "/Users/david/sage-4.5.2/local/bin/ncadoctest.py", line 1231,
 in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/Users/david/sage-4.5.2/local/bin/sagedoctest.py", line 38, in
 run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/Users/david/sage-4.5.2/local/bin/ncadoctest.py", line 1172,
 in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_24[33]>", line 1, in <module>
         R3(-Integer(1)).square_root() == R3.teichmuller(Integer(2)) or
 R3(-Integer(1)).square_root() == R3.teichmuller(Integer(3))###line 1002:
     sage: R3(-1).square_root() == R3.teichmuller(2) or
 R3(-1).square_root() == R3.teichmuller(3)
       File "/Users/david/sage-4.5.2/local/lib/python/site-
 packages/sage/rings/padics/padic_generic.py", line 377, in teichmuller
         ans = self(x, prec)
       File "parent.pyx", line 861, in
 sage.structure.parent.Parent.__call__ (sage/structure/parent.c:6427)
       File "map.pyx", line 478, in sage.categories.map.Map._call_with_args
 (sage/categories/map.c:3666)
     NotImplementedError: _call_with_args not overridden to accept
 arguments for <type
 'sage.rings.padics.padic_base_coercion.pAdicCoercion_ZZ_CR'>
 }}}

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