If you are solving univariate expressions you don't need to pass the symbol:
>>> solve(S('x**2 -1'))
[-1, 1]On Saturday, February 15, 2020 at 3:47:01 AM UTC-6, ludi wrote: > > On Saturday, 15 February 2020 00:55:20 UTC+1, Aaron Meurer wrote: >> >> ... >> The best recommendation is in general to avoid sympify, unless you are >> processing arbitrary strings > > .... >> > > Thanks for the reply, but as I am processing user-input I think there is > no way around sympify. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/8da3d4a5-7850-4821-a884-15193ca814ef%40googlegroups.com.
