Plotting Multiple Functions on Maple Graphs

Click For Summary
SUMMARY

This discussion focuses on plotting multiple functions using Maple, specifically how to display them on the same graph with different x-axis intervals. The user Amos successfully implements the technique using the Maple commands `with(plots)`, `plot`, and `display`. The key takeaway is to name the plots and use colons to store the plot instructions without displaying them. This method effectively allows for the visualization of functions like `4-x` and `cos(x)` on the same graph.

PREREQUISITES
  • Familiarity with Maple software
  • Understanding of basic plotting commands in Maple
  • Knowledge of function definitions in Maple
  • Basic trigonometric functions and their properties
NEXT STEPS
  • Explore advanced plotting techniques in Maple, such as `plot3d` for three-dimensional graphs
  • Learn about customizing plot aesthetics in Maple
  • Investigate the use of `animate` in Maple for dynamic visualizations
  • Study the integration of multiple datasets in a single Maple graph
USEFUL FOR

This discussion is beneficial for mathematicians, educators, and students who are using Maple for visualizing mathematical functions and require guidance on plotting techniques.

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
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
9K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K