#8327: Implement the universal cyclotomic field, using Zumbroich basis
-----------------------------------------------------+----------------------
Reporter: nthiery | Owner:
Type: enhancement | Status:
needs_work
Priority: major | Milestone: sage-5.0
Component: number fields | Resolution:
Keywords: Cyclotomic field, Zumbroich basis | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Christian Stump, Simon King | Merged in:
Dependencies: #4539 #10771 #7980 | Stopgaps:
-----------------------------------------------------+----------------------
Comment (by davidloeffler):
I'm sorry, please pardon my earlier outburst -- it was uncalled for, your
message just caught me at a bad time.
See [http://www.sagemath.org/doc/reference/coercion.html#methods-to-
implement]. The magic routines here are {{{ _element_constructor_}}} and
{{{ _coerce_map_from_ }}}.
In practice I find it is easiest to make {{{ _element_constructor_ }}}
always return either True or False; if it returns True, then when
necessary the coercion framework will just call {{{ _element_constructor_
}}} and assume that this has the extra properties a coercion is required
to have (i.e. all diagrams commute modulo numerical precision). Any actual
work required to convert elements of other parents can then be handled by
{{{ _element_constructor_}}}.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8327#comment:99>
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.