I stumbled upon the following problem: the following code does not work as it should: a=[[(x<2).rhs(),oo],[-oo,(x<1).rhs()]]; a.sort(); print a However the following works a=[[2,oo],[-oo,1]]; a.sort(); print a and this too a=[(x<2).rhs(),(x<1).rhs()]; a.sort(); print a
In the hand it is very confusing AND i am stuck in my program for this very reason. I think the problem somehow is related to the fact that (x<2).rhs() and (x<1).rhs() are expressions, not sage numbers. I thought that if I could convert those expressions into sage numbers then it should work. However I did not find any way to accomplish this. I tried #sagemath on IRC, but no luck. Regards to you all! -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support?hl=en.
