All you needed to get up and running with the Sinclair ZX81 was a small portable TV. The brief manual told you everything you needed to know and possibly everything there was to know. There was no disc drive but you could save programs and data to a cassette, and also buy programs (mostly games) on cassette. You could also buy a “RAM pack” to boost the memory to 16K, and a strange little printer. Photo: Wikimedia
I often use mathematical symbols in Python code which results in me scrabbling around to find the ones I need so I decided to write a simple module to simplify the process, which I will describe in this article.
There is a wealth of information out there on plotting mathematical functions in Python, typically using NumPy to create a set of y values for a range of x values and plotting them with Matplotlib. In this article I will write a simple but powerful function to abstract away much of the repetitive code necessary to do this. In future articles I will show the code in use for a selection of functions.