Le 01/07/2015 08:23, Ralf Stephan a écrit : > On Tuesday, June 30, 2015 at 1:24:23 PM UTC+2, tdumont wrote: > > Why is xxc in Symbolic Ring and not in Algebraic Field? > mxx and xxc are essentialy the same thing, no ? > > When you input sqrt(2) it is not clear which object you want, > Sage traditionally decides in favor of a symbolic. If you specifically > need the number field element you must say so with > > sage: K.<sqrt2> = QuadraticField(2) > sage: sqrt2^5 > 4*sqrt2 > > That said, I think the sqrt function of Rational (which is called here) > could be enhanced with an option to return a number field element > for convenience. > > Regards, > Thanks, But this is not what I do! I do xx=QQ(2) xxc=xx.sqrt() xxc.parent() Symbolic Ring
It should not be the same thing as xxc=sqrt(2)... Yours t. > -- > 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 sage-support+unsubscr...@googlegroups.com > <mailto:sage-support+unsubscr...@googlegroups.com>. > To post to this group, send email to sage-support@googlegroups.com > <mailto:sage-support@googlegroups.com>. > 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
<<attachment: tdumont.vcf>>