#8502: evaluating multivariate polynomials yields non-constant
-----------------------+----------------------------------------------------
   Reporter:  cremona  |       Owner:  AlexGhitza           
       Type:  defect   |      Status:  new                  
   Priority:  major    |   Milestone:  sage-4.3.4           
  Component:  algebra  |    Keywords:  polynomial evaluation
     Author:           |    Upstream:  N/A                  
   Reviewer:           |      Merged:                       
Work_issues:           |  
-----------------------+----------------------------------------------------
 The following behaviour does not agree with the documentation for the
 {{{__call__}} function on multivariable polynomials, which states that (as
 one would expect and hope) the result should lie in the constant field:
 {{{
 sage: K.<t> = NumberField(x^2+47)
 sage: R.<X,Y,Z> = K[]
 sage: f = X+Y+Z
 sage: a = f(t,t,t)
 sage: a.parent()
 Multivariate Polynomial Ring in X, Y, Z over Number Field in t with
 defining polynomial x^2 + 47
 }}}
 It is also inconsistent:
 {{{
 sage: R.<X,Y,Z> = QQ[]
 sage: f = X+Y+Z
 sage: a = f(2,3,4)
 sage: a.parent()
 Rational Field
 }}}
 This causes strange bugs -- see #8498 for an example.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8502>
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.

Reply via email to