combine/piecewise - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Algebra : Expression Manipulation : Combining : combine/piecewise

combine/piecewise

apply combine to piecewise functions

 Calling Sequence combine(f, piecewise) combine(f)

Parameters

 f - any expression

Description

 • The combine function is applied to the arguments of a piecewise function.
 • To make a single piecewise expression out of two, use convert(expr, piecewise, var).

Examples

 > $\mathrm{combine}\left(\mathrm{piecewise}\left(0
 ${{}\begin{array}{cc}{{ⅇ}}^{{2}{}{x}{+}{y}}& {x}{\le }{0}\\ {1}& {0}{<}{x}\end{array}$ (1)
 > $\mathrm{combine}\left(\mathrm{piecewise}\left(x<1,{ⅇ}^{x}{ⅇ}^{-2x},3
 ${{}\begin{array}{cc}{{ⅇ}}^{{-}{x}}& {x}{<}{1}\\ {0}& {x}{\le }{3}\\ {-}{\mathrm{sin}}{}\left({3}{}{x}\right){+}{3}{}{\mathrm{sin}}{}\left({x}\right)& {3}{<}{x}\end{array}$ (2)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam