ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 15 Jul 2020 23:38:13 +0200Evaluation of logical compound expressionshttps://ask.sagemath.org/question/52483/evaluation-of-logical-compound-expressions/ sage: foo=sin(x) > 0 ; foo
sin(x) > 0
sage: bar=cos(x)>0 ; bar
cos(x) > 0
I do not understand this :
sage: foo and bar
sin(x) > 0
sage: foo or bar
cos(x) > 0
As long as `x` has no value, these expressions can't be evaluated or simplified. Could some kind soul enlighten my confused mind ?Emmanuel CharpentierWed, 15 Jul 2020 23:38:13 +0200https://ask.sagemath.org/question/52483/Evaluation of logical expressionshttps://ask.sagemath.org/question/52482/evaluation-of-logical-expressions/ sage: foo=sin(x) > 0 ; foo
sin(x) > 0
sage: bar=cos(x)>0 ; bar
cos(x) > 0
I do not understand this :
sage: foo and bar
sin(x) > 0
sage: foo or bar
cos(x) > 0
As long as `x` has no value, these expressions can't be evaluated or simplified. Could some kind soul enlighten my confused mind ?Emmanuel CharpentierWed, 15 Jul 2020 23:29:30 +0200https://ask.sagemath.org/question/52482/