I see, thanks for the tip -- didn't know about that option !  

On Tuesday, March 26, 2013 7:36:45 AM UTC-6, Volker Braun wrote:
>
> You'll have to use the hold=True argument to not evaluate such expressions 
> automatically:
>
> sage: x.add(-oo, hold=True) <= 0
> x - Infinity <= 0
>
>
>
> On Tuesday, March 26, 2013 5:59:47 AM UTC+1, tvn wrote:
>>
>> In my project I often have inequalities x <= c , x+y <= c, x -y <= c and 
>> to make things uniform, I move all the consts to the lhs, e.g. x <= c 
>> becomes x - c <= 0  .  However this becomes problem when c is Infinity 
>> because Sage automatically converts x - oo <= 0  to -Infinity <= 0  and 
>> removes all variables in the original relation.  Is there a way to get 
>> around this ? I thought about creating a new variable to represent oo but 
>> thought there could be easier way.  
>>
>

-- 
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