Previous Up Next

10.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)
     
cosx sinx+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)
     
ex ey+lnx+lny+
sin
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)
     
cosx sinx+ex ey+ln
x y
          

Previous Up Next