| 1 | initial version |
The problem here is that, since LHS is a symbolic expression, then LHS == a will also be a symbolic expression, not a boolean, see:
sage: LHS.parent()
Symbolic Ring
sage: (LHS == a).parent()
Symbolic Ring
You can try:
sage: bool(LHS == a)
True
| 2 | No.2 Revision |
The problem here is that, since LHS is a symbolic expression, then LHS == a will also be a symbolic expression, not a boolean, see:
sage: LHS.parent()
Symbolic Ring
sage: (LHS == a).parent()
Symbolic Ring
You can try:
sage: bool(LHS == a)
True
Also, LHS is a yields to False since LHS and a do not point to the same object in memory.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.