About array operations

Hello everyone,
I want to calculate the following equation.
lowmin = xval - 10*(xmax-xmin);
I want to calculate the following formula, where lowmin, xmax, and xmin are arrays of n rows and one column. But it was wrong.
The code is as follows

real[int]lowmin(5),xmax(5),xmin(5),xval(5);
xmax=1;
xmin=0.1;
xval=0.5;
lowmin = xval - 10*(xmax-xmin);

Hello,
I did also have some problems at first with this kind of operations. FreeFEM does not support that operation as it needs to store a temporal array in memory to compute the whole operation. You can achieve the same result either with a loop (not recommended) or using other operations which does not need to store data in temporal arrays, for example:

real[int]lowmin(5),xmax(5),xmin(5),xval(5);
xmax=1;
xmin=0.1;
xval=0.5;
lowmin = 10*xmin-10*xmax;
lowmin += xval;

fine
thank you very much.