4 Performing calculations

Often calculations need to be performed on data before they are plotted. This chapter and the next describe the mathematical environment which Pyxplot provides.

Most of the examples in this chapter act on single numerical values, displaying the results using the print command, demonstrating how Pyxplot may be used as a desktop calculator. The next chapter will extend this to use of Pyxplot’s mathematical environment to analyse whole datasets and produce plots.