Corrected type of input argument.
Change algorithm to equation and corrected size declaration.