]> www.ginac.de Git - ginac.git/blobdiff - ginac/indexed.h
* Bump up versions to 1.0.5, adjust dates.
[ginac.git] / ginac / indexed.h
index df05429e3eaa87a539c045c8e430c31939f6807d..58c8bbd4ce16bda7ad563a7c3fb987610ed11317 100644 (file)
@@ -3,7 +3,7 @@
  *  Interface to GiNaC's indexed expressions. */
 
 /*
- *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2002 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
@@ -145,12 +145,10 @@ public:
        void print(const print_context & c, unsigned level = 0) const;
        bool info(unsigned inf) const;
        ex eval(int level = 0) const;
-       int degree(const ex & s) const;
-       int ldegree(const ex & s) const;
-       ex coeff(const ex & s, int n = 1) const;
        exvector get_free_indices(void) const;
 
 protected:
+       ex derivative(const symbol & s) const;
        ex thisexprseq(const exvector & v) const;
        ex thisexprseq(exvector * vp) const;
        unsigned return_type(void) const { return return_types::commutative; }
@@ -234,13 +232,6 @@ private:
 
 // utility functions
 
-/** Return the indexed object handled by an ex.
- *  This is unsafe: you need to check the type first. */
-inline const indexed &ex_to_indexed(const ex &e)
-{
-       return static_cast<const indexed &>(*e.bp);
-}
-
 /** Specialization of is_exactly_a<indexed>(obj) for indexed objects. */
 template<> inline bool is_exactly_a<indexed>(const basic & obj)
 {