Hello,
As per the documentation, there is no explicit mention of solve()
accepting a string as it's argument. However, this works:
>>> from sympy.solvers import solve
>>> solve('a**2 + 2*a + 1')
[-1]
Just to make sure, 'a' has no existence other than in the above string:
>>> a
Traceback (most recent call last):
File "<pyshell#101>", line 1, in <module>
a
NameError: name 'a' is not defined
How is the above behavior explained and is this expected and are there
any limitations, I should be aware of?
Thanks,
Amit.
--
http://echorand.me
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.