]> www.ginac.de Git - ginac.git/blobdiff - ginac/diff.cpp
- rotate_31() and golden_hash_ratio() moved to utils.h
[ginac.git] / ginac / diff.cpp
index c8ef77b8dd7c6b4a0d79ee76bbae1360ad896b5a..167d4939fe5fe5a510db386b164f9f292382bfec 100644 (file)
@@ -1,7 +1,8 @@
 /** @file diff.cpp
  *
- *  Implementation of symbolic differentiation in all of GiNaC's classes.
- *
+ *  Implementation of symbolic differentiation in all of GiNaC's classes. */
+
+/*
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
 
 #include <stdexcept>
 
-#include "ginac.h"
+#include "basic.h"
+#include "ex.h"
+#include "add.h"
+#include "constant.h"
+#include "expairseq.h"
+#include "indexed.h"
+#include "inifcns.h"
+#include "mul.h"
+#include "ncmul.h"
+#include "numeric.h"
+#include "power.h"
+#include "relational.h"
+#include "series.h"
+#include "symbol.h"
+
+namespace GiNaC {
 
 /** Default implementation of ex::diff(). It prints and error message and returns a fail object.
  *  @see ex::diff */
@@ -184,7 +200,7 @@ ex series::diff(symbol const & s) const
         epvector new_seq;
         epvector::const_iterator it = seq.begin(), itend = seq.end();
         
-        //!! coeff might depend on var
+        // FIXME: coeff might depend on var
         while (it != itend) {
             if (is_order_function(it->rest)) {
                 new_seq.push_back(expair(it->rest, it->coeff - 1));
@@ -223,3 +239,5 @@ ex ex::diff(symbol const & s, unsigned nth) const
     }
     return ndiff;
 }
+
+} // namespace GiNaC