]> www.ginac.de Git - ginac.git/blobdiff - ginac/ncmul.cpp
- prepared for 1.0.13 release
[ginac.git] / ginac / ncmul.cpp
index a12fd6facfa2e7d2168f99ec552beb9d85ca742e..2b91cb23dd44853906dc64dd32adbdfb8136378a 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's non-commutative products of expressions. */
 
 /*
- *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2003 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
@@ -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());