Maths in Bash

Maths in Bash is not evident for the begginer. As a newbie a long time ago i would try *x=1+1* for example and get frustrated that it does not work. Here are a few examples on how to do some maths in Bash with integers or float: