kcrisman 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. > > - kcrisman >
Note that such sorts of statements are valid python in if statements, for example: sage: x=2 sage: if 1<x<3: ....: print True ....: True sage: if 3<x<=5: ....: print True ....: Jason -- Jason Grout -- 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