#11873: Cannot compute p-adic absolute value of zero
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:  roed          
       Type:  defect    |         Status:  needs_review  
   Priority:  minor     |      Milestone:  sage-4.7.2    
  Component:  padics    |       Keywords:                
Work_issues:            |       Upstream:  N/A           
   Reviewer:            |         Author:  Jeroen Demeyer
     Merged:            |   Dependencies:                
------------------------+---------------------------------------------------

Comment(by mstreng):

 {{{
 sage: L.<a> = Qp(5).ext(x^2-5)
 sage: L(5).abs()
 0.200000000000000
 sage: L(5).abs(prec=100)
 0.20000000000000000000000000000
 sage: L(5).abs(prec=0)
 1/25
 sage: L(5).abs(prec=False)
 1/25
 }}}
 (yes, I deliberately tried to break it because I didn't understand the
 code at first)

 Also: (why) is the code for pAdicExtElement a copy of the code for
 pAdicGenericElement? Why not remove the abs function for extension
 elements and move its examples to the generic one?

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