Piecewise functions in Maxima or GNUplot

Click For Summary
SUMMARY

This discussion focuses on graphing piecewise functions using Maxima and GNUplot. The user expresses difficulty in limiting the domains of functions within GNUplot, despite successfully using Maxima for calculations. A solution involves utilizing conditional statements, specifically the 'if' structure, to define the piecewise functions accurately. The user seeks guidance on implementing this in GNUplot for better visualization.

PREREQUISITES
  • Familiarity with Maxima 5.45.1 for symbolic computation
  • Basic understanding of GNUplot 5.4 for graphing
  • Knowledge of piecewise functions in mathematics
  • Experience with conditional statements in programming
NEXT STEPS
  • Research how to implement piecewise functions in Maxima
  • Learn about using the 'if' structure in GNUplot for domain limitations
  • Explore advanced graphing techniques in GNUplot
  • Study the documentation on conditional plotting in GNUplot
USEFUL FOR

Mathematicians, educators, students, and anyone interested in graphing piecewise functions using Maxima and GNUplot.

GregA
Messages
210
Reaction score
0
I managed to lay my grubby mitts on Maxima about a month ago (fantastic program), but having no prior knowledge of CAS software or programming I am stuggling trying to figure out how to draw piecewise defined functions either through maxima itself or the GNUplot command line window (I prefer the latter for graphing)...I know that I can just graph two functions together and make a mental note of where one stops and the other starts, but what I want to do is just limit their domains, and nowhere in the help files I have can I find even a vague mention of this. can anyone help?
 
Physics news on Phys.org
a function with an if struct will do it.

http://gnuplot.info/docs/gnuplot.html#if
 
Last edited by a moderator:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 17 ·
Replies
17
Views
46K