The function takes a numerical input and first multiplies it by 2. Then, it squares the result, except when the input is 0, in which case it returns 0.
