Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for online or offline software that can plot functions that include min() and max(). Neither of my favourites, Wolfram Alpha and fooplot seem to have these functions built in :-(

share|improve this question
You wish to plot mathematical functions and determine their extreme values, if I am correct ? – Rook Jun 11 '10 at 13:08
An example would be to plot y=2*(min(x,300)/300) between x=0 and x=400 – Mick Jun 11 '10 at 13:18
I don't understand the upper syntax. How goes the function that you wish to plot ? – Rook Jun 11 '10 at 13:27
The min() function comes from C programming (and probably other languages too). min takes two arguments and returns the smaller of the two. So for example min(3,7) would return 3. – Mick Jun 11 '10 at 13:33
@Mich - Heh. Yes ... I quite understand what is the min or the max function supposed to do :-) There is no problem in that. What I din't understand upon the time of writing the above comment is what was the upper function supposed to plot ? For it is not a typical mathematical syntax nor any that I commonly encountered so far ? At least not without further explanation on it. That's why I asked you to provide a working example ? However, if I understood you correctly you wish ... (see my answer) – Rook Jun 11 '10 at 13:40
up vote 0 down vote accepted

... (continuation from comments) to plot something like this:

alt text

which can simply be plotted from excel. In A column you place a number of points from 0 to 400, and in column B you place =2*(MIN(A32;300)/300) ... afterwards you plot both columns on xy plot.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .