change in maths() 0.6

Updated div. algorithm