Actually, ex.is_real() queries the assumptions() data base, not the GiNaC/Pynac info flags. Example:
var('test', domain='real')--
You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-devel/-A8ZzSKvYsA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
-- ________________________________________ Stan Schymanski Riedstrasse 60 8604 Volketswil Schweiz Ph: +41 (0)43 5420487 _________________________________________
The existing bridge to/from Pynac has to include the forget() call, of course, and your example only shows that it works.
https://github.com/sagemath/sage/blob/master/src/sage/symbolic/expression.pyx#L1916
https://github.com/sagemath/sage/blob/master/src/sage/symbolic/expression.pyx#L1994
https://github.com/sagemath/sage/blob/master/src/sage/symbolic/assumptions.py#L559
https://github.com/pynac/pynac/blob/master/ginac/assume.cpp#L43
Wow, I must have misunderstood, thanks! I just checked https://github.com/sagemath/sage/blob/master/src/sage/symbolic/assumptions.py and I find only a few references to Pynac, exclusively in the documentation string. Acceptable features are all taken from maxima: `maxima('features')`
So you are saying that the assumptions() are
used by both Pynac and maxima? You're right, there is also
https://github.com/sagemath/sage/blob/master/src/sage/symbolic/expression.pyx#L1786