Ask Your Question

how to change rhs() of an equation in an equation list

asked 2019-02-01 12:05:44 -0600

ortollj gravatar image


sorry for this basic question !

var('x y')

I got this mesage:

File "<ipython-input-55-19bf87f1683d>", line 4 ((T[Integer(0)]).rhs())=Integer(5) SyntaxError: can't assign to function call

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-02-01 14:08:18 -0600

tmonteil gravatar image

Why not just rewriting the equation:

sage: eqT[0] = eqT[0].lhs() == 5
sage: eqT
[x == 5, y == 4]
edit flag offensive delete link more


Ok , I will do that, but I think it's weird that we can not change just one of the equation members.

ortollj gravatar imageortollj ( 2019-02-01 14:16:42 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-02-01 12:05:44 -0600

Seen: 451 times

Last updated: Feb 01 '19