Ask Your Question

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

asked 2019-02-01 19:05:44 +0200

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 21:08:18 +0200

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 21:16:42 +0200 )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 19:05:44 +0200

Seen: 1,695 times

Last updated: Feb 01 '19