Previous Up Next

9.4.2 Combining terms of the same type

The combine command joins subexpressions of various types.

The combine command can duplicate the effect of other commands.

Examples

combine(exp(x)*exp(y)+sin(x)*cos(x)+ln(x)+ln(y),exp)
     
cosxsinx+lnx+lny+ex+y           
combine(exp(x)*exp(y)+sin(x)*cos(x)+ln(x)+ln(y),trig)

or:

combine(exp(x)*exp(y)+sin(x)*cos(x)+ln(x)+ln(y),sin)

or:

combine(exp(x)*exp(y)+sin(x)*cos(x)+ln(x)+ln(y),cos)
     
exey+lnx+lny+
sin
2 x
2
          
combine(exp(x)*exp(y)+sin(x)*cos(x)+ln(x)+ln(y),ln)

or:

combine(exp(x)*exp(y)+sin(x)*cos(x)+ln(x)+ln(y),log)
     
cosxsinx+exey+ln
xy
          

Previous Up Next