#10946: Evaluation and subsitution of multi-variable polynomials
-----------------------------------+----------------------------------------
Reporter: wuthrich | Owner: malb
Type: defect | Status: new
Priority: major | Milestone: sage-4.7
Component: commutative algebra | Keywords: multi_polynomials,
evaluation, substitution
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------------+----------------------------------------
Let f be a polynomial in two variables x and y over a ring R.
Consider the following three commands
i) f(2,3)
ii) f(x=2,y=3)
iii) f.subs(x=2,y=3)
They give the same results but not the same type. i) gives an element in R
while ii) and iii) are constant polynomials in two variables.
Follinwg the documentation, i) and ii) should give an element in R
while iii) is a polynomial.
f(x=2,y=3) is the {{{__call__}}} method in
{{{sage.rings.polynomials.multi_polynomial_libsingular.pyx}}} and there,
in the first lines (currently line 1673), it jumps to execute subs.
See this thread: http://groups.google.com/group/sage-
devel/browse_thread/thread/503d0d82307c9aa5
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10946>
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.