l = abs(math.sqrt(2)(r*r)-(y*y))
Break this formula down into one calc per line and see where the error occurs, then print the variable and it's type(variable_name), and that should tell you where you went wrong. Also, it is not polite to use "i", "l",. or "o" as single letter variable names. They look like numbers and can be confusing to someone trying to decipher someone else's code.
woooee 814 Nearly a Posting Maven
woooee 814 Nearly a Posting Maven
vegaseat commented: good ref +11
woooee 814 Nearly a Posting Maven