On Oct 31, 2012, at 12:48 PM, Guilherme Boaviagem Ribeiro <
[email protected]> wrote:

Hi everybody,

I ran the following code with sympy:

x = Symbol('x')
y = Symbol('y')
z = Symbol('z')

z = x = I*y


The problem is with this line. You're setting z and x equal to I*y.
Remember that = is assignment in Python.  See
http://docs.sympy.org/dev/gotchas.html#variables-assignment-does-not-create-a-relation-between-expressions
for
more information.

What were you trying to do here?

Aaron Meurer


solve (z**3 - z**2 - z - 1, z)

But I got the TypeError: "expected Symbol, Function, Power or Derivative
but got <class 'sympy.core.add.Add'>."
What is the problem?
Thank you all!

-- 
You received this message because you are subscribed to the Google Groups
"sympy" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sympy/-/LP2r4k9lenwJ.
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?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to