Fixed code not calculating roots of negative numbers

Code will now automatically give correct (negative or positive) number
if either is inputted.

Imported division to make sure we always get float numbers.