Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 11 years ago

jeanpat gravatar image

checking left hand side of an equation

Hi, I'd like to check if the operation applied to an equation yields the solution as follow: a=var('a') eq= a+7==6

print eq.lhs()
LHS =(eq-7).lhs()
print LHS
LHS==a

I was waiting that the last line yields True or False. How can I check that LHS contains the variable a?

click to hide/show revision 2
No.2 Revision

checking left hand side of an equation

Hi, I'd like to check if the operation applied to an equation yields the solution as follow: a=var('a') eq= a+7==6

print eq.lhs()
LHS =(eq-7).lhs()
print LHS
LHS==a
a is a
LHS is a

I was waiting that the last line yields True or False. How can I check that LHS contains the variable a?? edit LHS is a yields False

click to hide/show revision 3
additional info

checking left hand side of an equation

Hi, I'd like to check if the operation applied to an equation yields the solution as follow: a=var('a') eq= a+7==6

print eq.lhs()
LHS =(eq-7).lhs()
print LHS
LHS==a
a is a
LHS is a

I was waiting that the last line yields True or False. How can I check that LHS contains the variable a? ?

edit

LHS `LHS is aa`
 

yields False

click to hide/show revision 4
No.4 Revision

checking left hand side of an equation

Hi, I'd like to check if the operation applied to an equation yields the solution as follow: a=var('a') eq= a+7==6

print eq.lhs()
LHS =(eq-7).lhs()
print LHS
LHS==a
a is a
LHS is a

I was waiting that the last line LHS==a yields True or False. How can I check that LHS contains the variable a?

edit

`LHS is a`

yields False