* Implementation of relations between expressions */
/*
- * GiNaC Copyright (C) 1999-2021 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2024 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
return (o < oth.o) ? -1 : 1;
break;
}
- const int lcmpval = lh.compare(oth.rh);
- return (lcmpval!=0) ? lcmpval : rh.compare(oth.lh);
+ const int lcmpval = lh.compare(oth.lh);
+ return (lcmpval!=0) ? lcmpval : rh.compare(oth.rh);
}
bool relational::match_same_type(const basic & other) const
* unequal or undecidable). */
relational::operator relational::safe_bool() const
{
- const ex df = lh-rh;
+ const ex df = lh-rh; // like ::canonical() method
// We treat numeric and symbolic expression differently
if (is_exactly_a<numeric>(df)) {
switch (o) {