]> www.ginac.de Git - ginac.git/blobdiff - ginac/inifcns.cpp
- put everything in "GiNaC" namespace
[ginac.git] / ginac / inifcns.cpp
index 981e98e3f119790ab126dad29f711f065ae735ca..5eb4466cc72b710865d8842e4aa935fecdc858f5 100644 (file)
@@ -1,7 +1,8 @@
 /** @file inifcns.cpp
  *
 /** @file inifcns.cpp
  *
- *  Implementation of GiNaC's initially known functions.
- *
+ *  Implementation of GiNaC's initially known functions. */
+
+/*
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
 #include <vector>
 #include <stdexcept>
 
 #include <vector>
 #include <stdexcept>
 
-#include "ginac.h"
+#include "inifcns.h"
+#include "ex.h"
+#include "constant.h"
+#include "lst.h"
+#include "matrix.h"
+#include "mul.h"
+#include "ncmul.h"
+#include "numeric.h"
+#include "power.h"
+#include "relational.h"
+#include "series.h"
+#include "symbol.h"
+
+namespace GiNaC {
 
 //////////
 // dilogarithm
 
 //////////
 // dilogarithm
@@ -126,7 +140,7 @@ ex Order_series(ex const & x, symbol const & s, ex const & point, int order)
 REGISTER_FUNCTION(Order, Order_eval, NULL, NULL, Order_series);
 
 /** linear solve. */
 REGISTER_FUNCTION(Order, Order_eval, NULL, NULL, Order_series);
 
 /** linear solve. */
-ex lsolve(ex eqns, ex symbols)
+ex lsolve(ex const &eqns, ex const &symbols)
 {
     // solve a system of linear equations
     if (eqns.info(info_flags::relation_equal)) {
 {
     // solve a system of linear equations
     if (eqns.info(info_flags::relation_equal)) {
@@ -218,7 +232,7 @@ ex lsolve(ex eqns, ex symbols)
 }
 
 /** non-commutative power. */
 }
 
 /** non-commutative power. */
-ex ncpower(ex basis, unsigned exponent)
+ex ncpower(ex const &basis, unsigned exponent)
 {
     if (exponent==0) {
         return exONE();
 {
     if (exponent==0) {
         return exONE();
@@ -233,3 +247,4 @@ ex ncpower(ex basis, unsigned exponent)
     return ncmul(v,1);
 }
 
     return ncmul(v,1);
 }
 
+} // namespace GiNaC