Comment #6 on issue 2098 by [email protected]: solve(x**2+1,x) does not check if x is real.
http://code.google.com/p/sympy/issues/detail?id=2098

What is the best way to test assumptions ?

I thought I should use ask(), but I obtain:

n = Symbol('n', integer=True)
n.is_integer
True
ask(Q.integer(n))
None

Did I miss something ?

Does the '.is_' method exist for every predicate ?
In other words, is it safe to use something like this:

    for key, val in symbol.assumptions0.items():
        if getattr(sol, 'is_' + key) != val:
            ...



--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to