]> www.ginac.de Git - ginac.git/blobdiff - ginac/expairseq.cpp
added predefined epsilon tensor
[ginac.git] / ginac / expairseq.cpp
index 3e84134b3ca29b58aac94ea56b9dacd66774f077..cfcfa16d0cb8401d222e36c7a4ce45bcf56f09cf 100644 (file)
@@ -207,8 +207,7 @@ void expairseq::print(std::ostream &os, unsigned upper_precedence) const
 void expairseq::printraw(std::ostream &os) const
 {
        debugmsg("expairseq printraw",LOGLEVEL_PRINT);
-       
-       os << "expairseq(";
+       os << class_name() << "(";
        for (epvector::const_iterator cit=seq.begin(); cit!=seq.end(); ++cit) {
                os << "(";
                (*cit).rest.printraw(os);
@@ -1301,6 +1300,9 @@ void expairseq::drop_coeff_0_terms(epvector::iterator &first_numeric,
        GINAC_ASSERT(i==current-seq.begin());
 }
 
+/** True if one of the coeffs vanishes, otherwise false.
+ *  This would be an invariant violation, so this should only be used for
+ *  debugging purposes. */
 bool expairseq::has_coeff_0(void) const
 {
        for (epvector::const_iterator cit=seq.begin(); cit!=seq.end(); ++cit) {