Functions in Mathematics and Programming

Explaining mathematical notation for functions using programming concepts

Although mathematics inspired programming, many people will find it easier to understand programming syntax than mathematical notation.

So I just got the idea to demystify mathematical notation by showing analogies from different programming languages.

Look at this simple math function.