Re: (newbie) Find Max Number In An Array



"Nektarios - Greece" <eizo5@xxxxxxxxxxxx> wrote in message
news:e7r19d$31a$1@xxxxxxxxxxxxxxxxxxxxxx

Do i have to put each Y to an array [X,Y] and then find the minimum Y ?

No, do it like this:

minY:= somebignumber
for xx:= x+1 to x+50 do
begin
y:= f(xx);
if y<miny then miny:= y;
end;

Can i create a graph X-Y in Delphi ?

See TChart in the help.



.