We can represent domains on paper quite easily - for instance we can write x < 0, or alternatively x (epsilon symbol) R-, or even x (epsilon symbol) (-infinity, 0)I looked around but couldn't really find that - is there a canonical way to be writing domains in SymPy?
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.
To me, it's just an element of the cartesian product
, which just contains tuples, so yeah, Contains((x, y), ProductSet(A, B)).
Or you
could write x*y > 0. I guess what we also need are some functions to
convert back and forth from set notation to relational notation.
You received this message because you are subscribed to a topic in the Google Groups "sympy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sympy/vMa2TEbdb-k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "sympy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sympy/vMa2TEbdb-k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.
Since it's for my own purposes I really could represent it with nested lists/tuples, using booleans to include a value or not:[[(-sympy.oo, False), (-1, True)], [(0, False), (sympy.oo, True)]]which represents (-inf, -1] U (0, inf)
which would work fine for my purposes. However I'm pretty sure with what I plan to do I'm going to be using domains a fair bit more in the future so if I have something that is going to work with what SymPy has planned then it may help.