Maple Plotting Multiple Functions on Maple Graphs

AI Thread Summary
To plot multiple functions on the same graph in Maple with different x-axis intervals, the key is to use the `with(plots)` command and define each function plot separately. For instance, the command `f:=plot(4-x,x=2..4)` creates a plot for the function 4-x over the interval from 2 to 4, while `g:=plot(cos(x),x=-Pi/2..0)` creates a plot for the cosine function over the interval from -π/2 to 0. The `display({f,g})` function is then used to combine these plots into a single graph. It is important to include a colon after each plot command to prevent Maple from displaying the plot instructions. This method effectively allows for the visualization of multiple functions with varying x-axis intervals.
kubekas
Messages
9
Reaction score
0
Hi there

I would like to plot a two/several functions using Maple on the same graph but with different intervals on the x exis. What I have at the moment is a Maple command for plotting two/several functions on the same graph with the same interval on the x exis.

Thanks
Amos
 
Physics news on Phys.org
Here's an example showing you how to do it:

with(plots):
f:=plot(4-x,x=2..4):
g:=plot(cos(x),x=-Pi/2..0):
display({f,g});

The trick is to name the plots. Be sure to put a colon on those steps because Maple stores the plot instructions in f and g and you don't want to see that.
 
O thanks a lot. Your methods is working very well!
GOD BLESS!
Amos
 

Similar threads

Replies
1
Views
871
Replies
1
Views
3K
Replies
2
Views
2K
Replies
2
Views
8K
Replies
1
Views
4K
Replies
3
Views
2K
Replies
2
Views
2K
Back
Top