Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Rosenthal Newsgroups: comp.soft-sys.math.maple Subject: Re: Plot in maple Date: Wed, 25 Feb 2015 22:32:50 +0100 Lines: 32 Message-ID: References: <87vbipx0pq.fsf@san.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net DRnEM2ZgP7j2OWWhT+AeuwzwZ/IFmx/EujA16y32UAMrmd2S4= Cancel-Lock: sha1:b0vTLj8s50gVmUX7xX9+OoLN0Wg= User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <87vbipx0pq.fsf@san.rr.com> Xref: csiph.com comp.soft-sys.math.maple:1104 Am 25.02.2015 um 20:14 schrieb Joe Riel: > 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); > I am not sure the original poster wanted both function graphs in one figure. Firstly the graphs overlap and secondly the question said "...and then". I suggest the following line instead of the single plot-line: plot(f1,0..1,scaling=CONSTRAINED);plot(f2,0..1,scaling=CONSTRAINED); Cheers, Rainer