On Thu, Dec 10, 2009 at 6:47 AM, kcrisman <kcris...@gmail.com> wrote: > > > On Dec 10, 3:30 am, "ma...@mendelu.cz" <ma...@mendelu.cz> wrote: >> Dear sage-devel >> >> I tried to use plot_region as follows >> plot_region(-1<x<1,-2<y<x^2, .....) > > Note that the documentation for region_plot (not plot_region, though > that would be good to add as an alias) says we have to use a list to > do multiple conditions, as in > > sage: region_plot([y>0, x>0], ...) > > and technically -1<x and x<1 are separate conditions. I know that > doesn't answer the question of whether we *should* accept -1<x<1, but > at any rate currently I don't think Sage accepts such things > anywhere. Apparently currently the preparser ignores everything after > the 'x'; I'm not sure what is going on syntactically, a Python expert > will hopefully chime in.
Just to agree with this: the preparser has *nothing* to do with how Sage handles inequalities. This is not some weird magic -- it's just standard Python with overloading of the __cmp__ family of functions when a symbolic expression is involved. William -- 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