Try using Python's `eval` function: sage: eval('y+x>=0') x + y >= 0 sage: type(eval('y+x>=0')) <type 'sage.symbolic.expression.Expression'>
-- Benjamin Jones benjaminfjo...@gmail.com On Apr 24, 1:50 pm, tvn <nguyenthanh...@gmail.com> wrote: > I can convert 'x + 5' to equivalent expression with SR() but can't do > the same to 'x+5>= 0' . Is there other way ? Thanks -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org