-
-
Couldn't load subscription status.
- Fork 680
Closed
Milestone
Description
But it is known to be positive...
See the following code:
sage: assume(x>0)
sage: x.is_real()
True
sage: x.is_positive()
True
sage: (x**x).is_positive()
True
sage: (x**x).is_real()
FalseFor comparison, this is how SymPy handles this:
In [2]: x = Symbol('x', positive=True)
In [3]: x.is_positive
Out[3]: True
In [4]: x.is_real
Out[4]: True
In [5]: (x**x).is_positive
Out[5]: True
In [6]: (x**x).is_real
Out[6]: TrueDepends on #21963
CC: @rwst
Component: symbolics
Keywords: is_real, days79
Author: Peleg Michaeli, Ralf Stephan
Branch/Commit: c883299
Reviewer: Ralf Stephan, Peleg Michaeli
Issue created by migration from https://trac.sagemath.org/ticket/21940