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