Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.maple > #1104

Re: Plot in maple

From Rainer Rosenthal <r.rosenthal@web.de>
Newsgroups comp.soft-sys.math.maple
Subject Re: Plot in maple
Date 2015-02-25 22:32 +0100
Message-ID <cl6t77Fo95U1@mid.individual.net> (permalink)
References <e65d6e47-4a4e-46ea-b324-119d0bb352f5@googlegroups.com> <87vbipx0pq.fsf@san.rr.com>

Show all headers | View raw


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<x<1
>>
>> 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


Back to comp.soft-sys.math.maple | Previous | NextPrevious in thread | Find similar


Thread

Plot in maple hadjievangeloualexandra@gmail.com - 2015-02-25 10:43 -0800
  Re: Plot in maple Joe Riel <joer@san.rr.com> - 2015-02-25 11:14 -0800
    Re: Plot in maple Rainer Rosenthal <r.rosenthal@web.de> - 2015-02-25 22:32 +0100

csiph-web