Is it possible to delay/hold the automatic evaluation in expression after 
applying subs()  ?   I am facing the below problem because of such 
automatic evaluation

sage: var('l ,u')
(l, u)
sage: f = l-u <= 0
sage: f.subs({l:oo})
+Infinity <= 0      #this is not expected as it becomes False.     what 
should be given is that  oo -u <= 0  (which implies  oo <= u)  .

Doing this same operation in sympy gives the desirable output  
In [76]: f = l-u <= 0

In [77]: f.subs({l:oo})
Out[77]: -u + oo <= 0




-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to