Hi Vincent, > I'm just in trouble with the behavior of sqrt(n) when n is an integer, > because of the following: > {{{ > sage: x = sqrt(2) > sage: x in RR > True > sage: x > 1 # a boolean expected > x > 1 # a symbolic expression obtained > }}} > > It could be avoided by forcing the interpretation of the boolean > expression: > {{{ > sage: bool(x > 1) > False > }}}
Is False really sage answer :-) ??? If you really got this one it is my scarier than an unevaluated comparison. Fortunately, It seems that this is only a bad copy paste : ---------------------------------------------------------------------- | Sage Version 4.2, Release Date: 2009-10-24 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- Loading Sage library. Current Mercurial branch is: combinat sage: x = sqrt(2) sage: x in RR True sage: x > 1 sqrt(2) > 1 sage: bool(x > 1) True Cheers, Florent --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---