Question: Wrapping code in a procedure

Hello all, I want to turn the following piece of code into a function of sorts by wrapping it in a proc. When I attempt to do so exactly as given in the below sample, 2 error messages are returned: The first is an 'Error, unterminated procedure' and the second 'Error, unable to parse'. > restart; with(LinearAlgebra); > func:=proc(params,a,b) eta_f:=params[1]: eta_s:=params[2]: eta_w:=params[3]: eta_int:=params[4]: omega:=params[5]: G:= params[6]: u[0]:= params[7]: params[7]: n:=a+b: Arand:=RandomMatrix(n,n):A:= Arand-Arand: end proc; To state my problem in it's completeness; For simplicity I have only included an excerpt of my full input - which runs fine before the introduction of 'proc' - but I encounter identical problems to that outlined above throughout. As such I assume a solution to the above excerpt can be applied generally. Thanks for your time, Ross
Please Wait...