#14120: Add constant_coefficient method for Laurent polynomials
------------------------------------+---------------------------------------
Reporter: tscrim | Owner: tscrim
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.8
Component: algebra | Resolution:
Keywords: days45 | Work issues:
Report Upstream: N/A | Reviewers: Kannappan Sampath
Authors: Travis Scrimshaw | Merged in:
Dependencies: | Stopgaps:
------------------------------------+---------------------------------------
Changes (by knsam):
* status: needs_review => needs_work
* reviewer: => Kannappan Sampath
Comment:
I thought, I'd review this ticket.
The docstring claims that, if the number of inputs is less than the number
of variables, all the remaining[trailing] variables would have their
exponent set to zero. But, for some reason, the implementation (and hence
the examples) raises a `TypeError`.
IMHO, it would be nice to implement the behaviour suggested by the
docstring. (of course, the other case, where no. of variables <= no. of
inputs is being handled correctly.)
And, could we also please document that multivariate laurent polynomials
are not iterable, as implemented, by adding an example, before we get
complaints "like" [http://trac.sagemath.org/sage_trac/ticket/14124 this].
Building documentation, there is a warning, which is fairly easy to fix: I
think the complaint is about the method `__call__`
{{{
<autodoc>:0: WARNING: Block quote ends without a blank line; unexpected
unindent.
}}}
-------------------------
Finally, that we are changing this file, one might as well go ahead and
clean up all the codifications: self is almost never codified, for
instance and such documentation stuff...
The already extant method `cofficient()` would benefit from adding r:
`r"""` just so that the `\frac` with backslash is picked up properly by
Sphinx.
--------------------------
Regards,
~KnS
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14120#comment:3>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.