how to find minima and maxima ....


sebastien2003
11-06-2002, 06:51 AM
Hello everybody,

I have an array Y with N point of a curve

for exemple :

X(1)=1 Y(1)=0.213
X(2)=2 Y(2)=1.246
X(3)=3 Y(3)=0.986
X(4)=4 Y(4)=0.123
X(5)=5 Y(5)=0.102
.....
X(N)=N Y(N)=0.830

I draw this points on a graph and line them,
so I have a curve (whitout knowing is equation)

Now : I need to find with precision all position of
minima and maxima.

But what function in NR i can and i must use ????

thanks for all idea
Sébastien