Functions

This notebook will introduce the concept of **functions** in terms of the Python programming language. I will endevour to use examples of *chemistry* related problems, but occasionally examples from physics or mathematics will come through.

Like many other programming languages Python lets you utilise functions -- is to have you have to write less code.

The concept of a function should be familiar from mathematics, e.g.

\(\)

where, \(\) is some mathematical operation that acts on the argument, \(\). An example of a function is,

\(\)

Using this we can say that \(\), \(\), etc.

The use of functions is an important paradigm in programming -- the following Jupyter notebook gives a quick introduction to functions  and how they can be used.

Launch this notebook using Binder

Download this notebook.