]> www.ginac.de Git - ginac.git/blobdiff - check/exam_matrices.cpp
Fix some apparent typos and misindentations.
[ginac.git] / check / exam_matrices.cpp
index 2e14f49482fbbfa836a052f61b038a626ff4e19a..3e1c25e5de5ae6af233f23272763860432758c2b 100644 (file)
@@ -3,7 +3,7 @@
  *  Here we examine manipulations on GiNaC's symbolic matrices. */
 
 /*
- *  GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2015 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
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <stdexcept>
-#include <iostream>
 #include "ginac.h"
-using namespace std;
 using namespace GiNaC;
 
+#include <iostream>
+#include <stdexcept>
+using namespace std;
+
 static unsigned matrix_determinants()
 {
        unsigned result = 0;
@@ -142,9 +143,9 @@ static unsigned matrix_invert2()
        ex det = m.determinant();
        
        if ((normal(m_i(0,0)*det) != d) ||
-               (normal(m_i(0,1)*det) != -b) ||
-               (normal(m_i(1,0)*det) != -c) ||
-               (normal(m_i(1,1)*det) != a)) {
+           (normal(m_i(0,1)*det) != -b) ||
+           (normal(m_i(1,0)*det) != -c) ||
+           (normal(m_i(1,1)*det) != a)) {
                clog << "inversion of 2x2 matrix " << m
                     << " erroneously returned " << m_i << endl;
                ++result;