Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

assume causes a solving failure

This code

var("a b")
assume(a, "real")
equation=[a+b==0]
s=solve(equation, a, b)
print(s)

causes an AttributeError :

AttributeError: 'list' object has no attribute 'lhs'

The problem comes from the assumption in line 2. Can somebody explain?