Question: Floor or round to get the number of intervals

Dear all;

I have a simple question about round and floor. Please read these line.

I have an interval [0,a].  For a given step size h=a/N; N is an integrer.

all the noeuds in this interval are X[i]:=i*h; must be in the interval [0,a].

If we make a procedure with input h, and a. ANd the oupt put x[i]. I try this



local x, N, i;


## My question how we define the N in the next line.  N:=floor(a/N); or N:=round(a/h);


for i from 0 to N-1 do:


end do:

seq([[x[i]], i=0..N);

end proc;



Please Wait...