#15625: Refactor Lucas sequence code
------------------------------------+------------------------
Reporter: jpflori | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.1
Component: basic arithmetic | Resolution:
Keywords: lucas sequence | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------------+------------------------
Comment (by tscrim):
1) was partially done in #11802 where `slow_lucas()` was deprecated for
(the more general) `BinaryRecurrenceSequence`. (`fast_lucas()` is
[deprecated and] now called `lucas_q1()`).
However something else that might be useful is a class attribute in
`BinaryRecurrenceSequence` called `lucas()` or `lucas_sequence()`, which
takes the usual Lucas sequence input and converts it into the appropriate
`BinaryRecurrenceSequence` input.
+1 for 3) with perhaps a minor variation: call the argument something like
`mod` which takes an integer or `None` and creates the corresponding ring.
Overall I think what's best is one function which has the `algorithm` and
`mod` arguments and possibly redirects to these subroutines depending upon
the input.
Best,[[BR]]
Travis
--
Ticket URL: <http://trac.sagemath.org/ticket/15625#comment:1>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.