Added a Square function to real maths.  Fixed a warning.