You defined t to be a 1x2 matrix over the field RIF, and t[0] is its first row which is a vector (lof length 1) over that field. I think you just meant to define an array (called list in python) with two elements, t0 and t1:
sage: t = [t0,t1] sage: t[0] is t0 True sage: t[1] is t1 True On 27 May 2014 01:04, msantopr <[email protected]> wrote: > Hi all, > > I am new to sage, so please forgive me if this is a trivial question. > > I tried to find a minimal example for my problem. > I can define two real interval fields: > > t0=RIF(2.9, 3.1) > t1=RIF(2.9, 3.1) > > and then define a matrix > > t=matrix([[t0],[t1]]) > > Clearly > > parent(t0) > > Real Interval Field with 53 bits of precision > > > However, > > > parent(t[0]) > > > Vector space of dimension 1 over Real Interval Field with 53 bits of > precision > > > I would like to do some computations with t[0] and t[1] in which they should > be regarded as elements of a real interval fields. Is there any way to > convert from Vector space of dimension 1 over the real interval field to > real interval field? In my actual code I don't have t0 and t1 explicitly > since the matrix is obtained form a computation. > > > Any help would be much appreciated! > > > Manuele > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" 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-support. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-support" 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-support. For more options, visit https://groups.google.com/d/optout.
