#9816: Elliptic Curves over RR or CC have wrong type
-------------------------------+--------------------------------------------
   Reporter:  cremona          |       Owner:  cremona 
       Type:  defect           |      Status:  new     
   Priority:  minor            |   Milestone:  sage-4.6
  Component:  elliptic curves  |    Keywords:          
     Author:  John Cremona     |    Upstream:  N/A     
   Reviewer:                   |      Merged:          
Work_issues:                   |  
-------------------------------+--------------------------------------------
 As of 4.5.3.alpha2, elliptic curves defined over RR or CC without giving
 the base explicitly are given type {{{EllipticCurve_generic}}} instead of
 {{{EllipticCurve_field}}}, which means that some functions which should be
 available for them are not:

 For example, over RR:
 {{{
 sage: E = EllipticCurve([1.2,3.4])
 sage: type(E)
 <class 'sage.schemes.elliptic_curves.ell_generic.EllipticCurve_generic'>
 sage: E.weierstrass_p()
 ...
 AttributeError: 'EllipticCurve_generic' object has no attribute
 'weierstrass_p'
 sage: E = EllipticCurve(RR,[1.2,3.4])
 sage: type(E)
 <class 'sage.schemes.elliptic_curves.ell_field.EllipticCurve_field'>
 sage: E.weierstrass_p()
 1.00000000000000*z^-2 + 0.000000000000000*z^-1 + 0.000000000000000 +
 0.000000000000000*z - 0.240000000000000*z^2 + 0.000000000000000*z^3 -
 0.485714285714286*z^4 + 0.000000000000000*z^5 + 0.0192000000000000*z^6 +
 0.000000000000000*z^7 + 0.0317922077922077*z^8 + 0.000000000000000*z^9 +
 0.0174386436420723*z^10 + 0.000000000000000*z^11 -
 0.00169558441558439*z^12 + 0.000000000000000*z^13 -
 0.00137243886869437*z^14 + 0.000000000000000*z^15 -
 0.000392255141636108*z^16 + 0.000000000000000*z^17 +
 0.0000813530244020272*z^18 + O(z^20)
 }}}
 and similarly over CC.

 This is easy to fix, and I'll post a patch shortly.

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