/[GiNaC]/ginac/add.cpp
ViewVC logotype

Diff of /ginac/add.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by kreckel, Sun Jan 30 20:53:21 2000 UTC revision 1.17 by kreckel, Wed Feb 2 15:50:10 2000 UTC
# Line 414  ex add::simplify_ncmul(const exvector & Line 414  ex add::simplify_ncmul(const exvector &
414    
415  // protected  // protected
416    
417    /** Implementation of ex::diff() for a sum. It differentiates each term.
418     *  @see ex::diff */
419    ex add::derivative(const symbol & s) const
420    {
421        // D(a+b+c)=D(a)+D(b)+D(c)
422        return (new add(diffchildren(s)))->setflag(status_flags::dynallocated);
423    }
424    
425  int add::compare_same_type(const basic & other) const  int add::compare_same_type(const basic & other) const
426  {  {
427      return inherited::compare_same_type(other);      return inherited::compare_same_type(other);

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15