Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?

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

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

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