]> www.ginac.de Git - ginac.git/blobdiff - ginac/symbol.cpp
- symmetrize eta(x,y).
[ginac.git] / ginac / symbol.cpp
index b15f9b784e47f18960a34687b56fb61fd25c7146..f5fd4a090b0df1f1ab66440b730d31b520104ada 100644 (file)
@@ -28,6 +28,7 @@
 #include "print.h"
 #include "archive.h"
 #include "debugmsg.h"
+#include "tostring.h"
 #include "utils.h"
 
 namespace GiNaC {
@@ -137,7 +138,7 @@ void symbol::archive(archive_node &n) const
 }
 
 //////////
-// functions overriding virtual functions from bases classes
+// functions overriding virtual functions from base classes
 //////////
 
 // public
@@ -179,14 +180,6 @@ bool symbol::info(unsigned inf) const
                return inherited::info(inf);
 }
 
-bool symbol::has(const ex & other) const
-{
-       if (this->is_equal(*other.bp))
-               return true;
-       else
-               return false;
-}
-
 int symbol::degree(const ex & s) const
 {
        return is_equal(*s.bp) ? 1 : 0;
@@ -250,16 +243,6 @@ bool symbol::is_equal_same_type(const basic & other) const
        return serial==o->serial;
 }
 
-unsigned symbol::return_type(void) const
-{
-       return return_types::commutative;
-}
-   
-unsigned symbol::return_type_tinfo(void) const
-{
-       return tinfo_key;
-}
-
 unsigned symbol::calchash(void) const
 {
        // this is where the schoolbook method