Plotting Multiple Functions on Maple Graphs

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
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