Weak positivity
In SageMath one can ask if x.is_positive{}. But this is the definition of strickt positivity. What or the weak case (i.e. x>=0) ?
In SageMath one can ask if x.is_positive{}. But this is the definition of strickt positivity. What or the weak case (i.e. x>=0) ?
It is obvious that x≥0 if and only if it is not the case that x<0. So, we can write
not(x.is_negative())
Thanks joakim, I am stupid.
Asked: 5 years ago
Seen: 767 times
Last updated: Oct 01 '19