The luxuries we now have in the amount of pixels on a screen to draw some amazing graphs with, were lacking in the early days of computing. Most of the time you had to resort to rude printed output. It wasn’t that bad always. Sometimes it was and still is sufficient; just to have a quick preview of what a function would look like.
Here I present some code that does just that. It plots a function to the console. I included a screen dump(which passed through Paint) just to show what it looks like. You could also use the SetOut method of the Console class to write to a text file instead, and then print it out on paper.
Just start a new Console application in VS2010 and fill in the code. Enjoy!
Use of constants and constant calculations.
Use of delegates.
Use of named parameters.