]> www.ginac.de Git - ginac.git/blobdiff - ginac/expairseq.cpp
- diff() is now only defined on classes ex and basic, where it handles
[ginac.git] / ginac / expairseq.cpp
index be065ce64a5d5b16d5cc9e033dbab796eef9a3f6..fe910d0316c6c39502d460929deb090f0c0c74b7 100644 (file)
@@ -372,6 +372,14 @@ ex expairseq::subs(const lst & ls, const lst & lr) const
 
 // protected
 
+/** Implementation of ex::diff() for an expairseq. It differentiates all elements of the
+ *  sequence.
+ *  @see ex::diff */
+ex expairseq::derivative(const symbol & s) const
+{
+    return thisexpairseq(diffchildren(s),overall_coeff);
+}
+
 int expairseq::compare_same_type(const basic & other) const
 {
     GINAC_ASSERT(is_of_type(other, expairseq));