Ask Your Question
1

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

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

ortollj gravatar image

Hi

sorry for this basic question !

var('x y')
eqT=[x==3,y==4]
show(eqT[0].rhs())
((eqT[0]).rhs())=5

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
1

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

Comments

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

Stats

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

Seen: 1,637 times

Last updated: Feb 01 '19