]> www.ginac.de Git - ginac.git/blobdiff - ginac/ncmul.cpp
* Added output-support for Python bindings and LaTeX printing for
[ginac.git] / ginac / ncmul.cpp
index a12fd6facfa2e7d2168f99ec552beb9d85ca742e..3f0ec97737430b3c7443cfd8ca76826fb0893506 100644 (file)
@@ -111,9 +111,9 @@ void ncmul::print(const print_context & c, unsigned level) const
 
                inherited::print(c, level);
 
-       } else if (is_a<print_csrc>(c)) {
+       } else if (is_a<print_csrc>(c) || is_a<print_python_repr>(c)) {
 
-               c.s << "ncmul(";
+               c.s << class_name() << "(";
                exvector::const_iterator it = seq.begin(), itend = seq.end()-1;
                while (it != itend) {
                        it->print(c, precedence());