Comparing expressions with \pm to FiniteSets

19 views
Skip to first unread message

Kevin Moore

unread,
Feb 22, 2022, 5:46:27 AM2/22/22
to sympy
Hello - I want to be able to compare a math expression using the plus/minus symbol (\pm) with a FiniteSet. How can I check that \pm 3 = FiniteSet(-3,3)?

Chris Smith

unread,
Feb 23, 2022, 1:21:05 PM2/23/22
to sympy
Could you show the creation of that pm object, please?

/c

Aaron Meurer

unread,
Feb 23, 2022, 2:11:04 PM2/23/22
to sy...@googlegroups.com
There are some ideas on how to do this on this issue https://github.com/sympy/sympy/issues/5305

Aaron Meurer

On Tue, Feb 22, 2022 at 3:46 AM Kevin Moore <kevi...@gmail.com> wrote:
Hello - I want to be able to compare a math expression using the plus/minus symbol (\pm) with a FiniteSet. How can I check that \pm 3 = FiniteSet(-3,3)?

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/sympy/c93e88fd-a66c-4245-be52-10fcf94a29e2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages