I'm not sure why you would want a square root function for the program you've described. To determine if x can be written as a*a+b*b surely you...
Separate names with a comma.