Piecewise Functions - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Math Apps : Functions and Relations : Basic Functions and Relations : MathApps/PiecewiseFunction

Piecewise Functions

Main Concept

A function whose formula is different on different parts of its domain is called a piecewise function. Such a function is commonly (but not necessarily) written using a case structure:

fx=f1xcondition1f2xcondition2f3xcondition3......

The conditions should be mutually exclusive. That is, at any given value of x at most one of the conditions can be true. The value of the function is then the value of the subformula corresponding to the true condition.

Examples

 

fx&equals;x2   x<0x2x0

gx=1xx<2sinx2x<11x21x

pn=nif n is prime1if n is composite

More MathApps

MathApps/FunctionsAndRelations


Download Help Document

Was this information helpful?



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