Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13490 > unrolled thread

Finding Maximum without a plot

Started byTim Trudgian <tim.trudgian@gmail.com>
First post2013-02-14 07:09 +0000
Last post2013-02-15 06:56 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Finding Maximum without a plot Tim Trudgian <tim.trudgian@gmail.com> - 2013-02-14 07:09 +0000
    Re: Finding Maximum without a plot Frank K <fkampas@gmail.com> - 2013-02-15 06:56 +0000
    Re: Finding Maximum without a plot richardgreco@gmail.com - 2013-02-15 06:56 +0000

#13490 — Finding Maximum without a plot

FromTim Trudgian <tim.trudgian@gmail.com>
Date2013-02-14 07:09 +0000
SubjectFinding Maximum without a plot
Message-ID<kfi2jd$d1k$1@smc.vnet.net>
I should like to find the maximum of 

Abs[Zeta[1/2 + I*t]]/t^(1/4)

for t large, say, t< 10^10.

The trouble with NMaximize is that (sometimes) only local maxima are picked up. 

When plotting, say

Plot[Abs[Zeta[1/2 + I*t]/t^(1/4)], {t, 3, 10^5}, PlotRange -> Full]

I can see that, around t = 20,000, there is a value above 1.5. This value is not picked up when plotting the same function in the range {t, 3, 10^6}.

Does anyone have any solutions other than plotting blocks of 10^k, 10^(k+1)?

[toc] | [next] | [standalone]


#13491

FromFrank K <fkampas@gmail.com>
Date2013-02-15 06:56 +0000
Message-ID<kfkm7i$j9o$1@smc.vnet.net>
In reply to#13490
NMinimize and NMaximize frequently work better if you don't use the default method.  I often use DifferentialEvolution.

[toc] | [prev] | [next] | [standalone]


#13501

Fromrichardgreco@gmail.com
Date2013-02-15 06:56 +0000
Message-ID<kfkm7d$j9h$1@smc.vnet.net>
In reply to#13490
New in Mathematica 9 is MaxDetect[].
As an example:

rr = Abs[Zeta[1/2 + I*t]]/t^(1/4)

Abs[Zeta[1/2 + I t]]/t^(1/4)

kk = Table[rr, {t, 1, 1000}] // N;

In[5866]:= MaxDetect[kk, .5]

Out[5866]= {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, \
0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, \
0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, \
0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, \
0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1}


On Thursday, February 14, 2013 12:09:33 AM UTC-7, Tim Trudgian wrote:
> I should like to find the maximum of 
> 
> 
> 
> Abs[Zeta[1/2 + I*t]]/t^(1/4)
> 
> 
> 
> for t large, say, t< 10^10.
> 
> 
> 
> The trouble with NMaximize is that (sometimes) only local maxima are picked up. 
> 
> 
> 
> When plotting, say
> 
> 
> 
> Plot[Abs[Zeta[1/2 + I*t]/t^(1/4)], {t, 3, 10^5}, PlotRange -> Full]
> 
> 
> 
> I can see that, around t = 20,000, there is a value above 1.5. This value is not picked up when plotting the same function in the range {t, 3, 10^6}.
> 
> 
> 
> Does anyone have any solutions other than plotting blocks of 10^k, 10^(k+1)?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web