My thoughts:
1) The easiest way might be to get a different graphing program. I know many other, more robust graphing packages have an option for "plot this equation" preprogrammed in, making it very easy to graph equations.
2) However, having posted this in an Excel forum, I'm assuming you want to do this in Excel. IMO, the easiest way to plot anything in Excel (even equations) is to build a table of data points in columns in the spreadsheet. With the correct combination of relative and absolute references, it should take almost no time to build spreadsheet formulas for x and y, copy those down the desired number of rows, then plot those data. In your case, this might look like:
3) If, for some reason, you feel you cannot have the data calculated in the spreadsheet, then you will have to find/program a VBA routine that will build the x and y arrays, then have your code add those arrays to the chart.
IMO, option 2 is so much easier than option 3, that I do not know why anyone would bother with 3. If you feel you must try something in VBA, run your query through this and other Excel site's search engines, because I know I have seen these kind of VBA solutions proposed.
Bookmarks