image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Other Sciences > Computing & Technology > Math & Science Software


Reply

image Mathematica Question: Finding local maximums Share It Thread Tools Search this Thread image
Old Nov8-09, 05:50 PM       Last edited by dreiter; Nov8-09 at 07:12 PM.. Reason: Whoops if this can be moved to the subforum that would be great!            #1
dreiter

dreiter is Offline:
Posts: 8
Mathematica Question: Finding local maximums

Hi all! This is a generic Mathematica question, which hopefully someone can help me with! :)

I have a set of data points.
I have an interpolating function from those points.
I have a graph of that interpolation function.

The graph goes like Sin^2, and has about 10 peaks. I want to have Mathematica find those 10 peaks. FindMaximum only finds 1 peak. How can I get it to find all 10?
  Reply With Quote
Old Nov12-09, 08:06 AM                  #2
DaleSpam

DaleSpam is Offline:
Posts: 3,714
Recognitions:
Science Advisor Science Advisor
Re: Mathematica Question: Finding local maximums

I would use:

Union[Table[FindMaximum[f[x], {x, xInit}], {xInit, xMin, xMax, xStep}]]
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Mathematica Question: Finding local maximums
Thread Thread Starter Forum Replies Last Post
how to find global/local minimums/maximums. thomasxc Calculus & Analysis 2 Aug28-09 02:42 AM
Finding local minimum JG89 Calculus & Beyond 8 Aug21-09 10:40 AM
Finding the local extrema of this function jason_r Calculus & Analysis 15 Jan28-09 10:54 AM
Finding mimum of a function with 2 local mins daviddoria General Math 2 Mar24-08 02:16 PM
Finding local extremes from stationary points goatsebear Calculus & Beyond 3 Feb27-08 04:24 PM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image