]> www.ginac.de Git - ginac.git/blobdiff - ginac/series.cpp
- introduced info_flags::cinteger, info_flags::crational,
[ginac.git] / ginac / series.cpp
index e21b2ba42be6bf97bbb0068b7eb1a74e9eb70556..0cc2be34d42ae208a7dacc06d736b1c08dcfd0e2 100644 (file)
@@ -112,6 +112,22 @@ basic *series::duplicate() const
     return new series(*this);
 }
 
+void series::print(ostream &os, unsigned upper_precedence) const
+{
+       debugmsg("symbol print", LOGLEVEL_PRINT);
+       convert_to_poly().print(os, upper_precedence);
+}
+
+void series::printraw(ostream &os) const
+{
+       debugmsg("symbol printraw", LOGLEVEL_PRINT);
+       os << "series(" << var << ";" << point << ";";
+       for (epvector::const_iterator i=seq.begin(); i!=seq.end(); i++) {
+               os << "(" << (*i).rest << "," << (*i).coeff << "),";
+       }
+       os << ")";
+}
+
 // Highest degree of variable
 int series::degree(symbol const &s) const
 {