Example A-9-2 - Maple Help

Online Help

All Products    Maple    MapleSim


Appendix

A-9: Graphing

Example A-9.2

Obtain Figure A-9.2(a), a graph of the piecewise function 

 

fx&equals;2 x&plus;1x<2103 xx2 

 

Since the two rules comprising fx are just linear functions joined at x&equals;2, the domain of the graph has been chosen to satisfy 0x4.

 

 

plot(piecewise(x<2,2*x+1,x>=2,10-3*x), x = 0 .. 4, discont = true, labels = [x, y], symbol=solidcircle, symbolsize=15, scaling=constrained);

 

Figure A-9.2(a)   Graph of a discontinuous piecewise function

 

<< Previous Example   Section A-9    Next Example >>

© Maplesoft, a division of Waterloo Maple Inc., 2021. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.

For more information on Maplesoft products and services, visit www.maplesoft.com