Properties
Similar Topics
Statistics
Comments
8
Participants
5
Subscribers
6
Votes
1
Views
484
Share
How to find relative maximums and minimums of a sequence of points in list form?
Answered
l1=Sequence((i,sin(i)),i,0,10,0.01)
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2021 International GeoGebra Institute
maybe this?
Have you tried eg
maybe this?
from rami's points other method
I like their methods because they are very interesting and complicated. I had thought of something like this; but it does not work for cases where there is noise in the data. This only worked with charts with smooth data.
Maximum Local Lists
RemoveUndefined(Sequence(If(y(Element(l1, i  1)) < y(Element(l1, i)) ∧ y(Element(l1, i + 1)) < y(Element(l1, i)), Element(l1, i)), i, 2, Length(l1)  1, 1))
Minimum Local Lists
RemoveUndefined(Sequence(If(y(Element(l1, i  1)) > y(Element(l1, i)) ∧ y(Element(l1, i + 1)) > y(Element(l1, i)), Element(l1, i)), i, 2, Length(l1)  1, 1))
Then you need to fit a curve with one of the Fit...() commands first
Comments have been locked on this page!