Question: How to Solve this Problem? About proc and sum

 x := proc (i::integer)

      return i^2;

end proc:


Error, invalid input: x expects its 1st argument, i, to be of type integer, but received i.


If I want to reserve the ::integer declaration, How to solve this problem. I know if there is no ::integer declaration,then everything is OK.

Please Wait...