| 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); |