Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Joe Riel Newsgroups: comp.soft-sys.math.maple Subject: Re: Plot in maple Date: Wed, 25 Feb 2015 11:14:41 -0800 Organization: A noiseless patient Spider Lines: 19 Message-ID: <87vbipx0pq.fsf@san.rr.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="15591ad2607da309a0d1a78a1d632bc7"; logging-data="9793"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/Iqqdcx3gSb9SaPIze6cJ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:E5zD8tDqO+EMGU3gSsa9zLmGlTY= sha1:94f+dO0oXGm/bac1HFk3kiFodXw= Xref: csiph.com comp.soft-sys.math.maple:1103 hadjievangeloualexandra@gmail.com writes: > I want to plot the function > f1(x)= x for 0<=x<=1/2 > 1-x for 1/2 > and then the function > f2(x)=(1/2)*f1(2x) > > in maple. > any suggestions for commands? > Thank you. f1 := x -> piecewise(x<=1/2,x,1-x): f2 := x -> f1(2*x)/2: plot([f1,f2],0..1); -- Joe Riel