#15007: adding diff() and differentiate() aliases to polynomial rings for
consistency
-------------------------+-------------------------------------------------
Reporter: dkrenn | Owner:
Type: | Status: new
enhancement | Milestone: sage-5.12
Priority: trivial | Keywords: diff, derivative, polynomial
Component: algebra | ring, beginner
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Dependencies: | Stopgaps:
-------------------------+-------------------------------------------------
{{{
sage: R.<y> = ZZ[]
sage: y.diff()
Traceback (click to the left of this block for traceback)
...
AttributeError:
'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer\
_dense_flint' object has no attribute 'diff'
}}}
does not work. Neither does {{{y.differentiate()}}}. You can only do the
desired operation with
{{{
sage: y.derivative()
1
}}}
In the symbolic ring all of the above is allowed:
{{{
sage: var('z')
z
sage: z.diff()
1
sage: z.differentiate()
1
sage: z.derivative()
1
}}}
For consistency aliases {{{.diff()}}} and {{{.differentiate()}}} should be
added to all polynomial rings.
--
Ticket URL: <http://trac.sagemath.org/ticket/15007>
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.