Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7345 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2011-12-19 12:21 +0000 |
| Last post | 2011-12-19 12:21 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: LogLinearPlot Nintegrate and a strange error message Bob Hanlon <hanlonr357@gmail.com> - 2011-12-19 12:21 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2011-12-19 12:21 +0000 |
| Subject | Re: LogLinearPlot Nintegrate and a strange error message |
| Message-ID | <jcna87$e71$1@smc.vnet.net> |
Doesn't seem to be a problem; however, I recommend that you do the
integration symbolicly.
f1[x_?NumericQ] := NIntegrate[(Sinc[1/x*u]), {u, 0, 1}]
f2[x_] = Integrate[Sinc[u/x], {u, 0, 1}]
x*SinIntegral[1/x]
GraphicsGrid[
Outer[
#1[#2[x], {x, 1, 2},
PlotLabel -> ToString[#1] <> " of " <> ToString[#2],
ImageSize -> 300] &,
{Plot, LogLinearPlot},
{f1, f2}]]
Bob Hanlon
On Sun, Dec 18, 2011 at 4:36 AM, Artur Henrykowski <mantysa@gmail.com> wrote:
> Hello,
>
> I noticed a strange behavior of Mathematica (version 7). I have no
> much experience in using it so probably there is something what I do
> not know (nor understand).
>
> I want to plot some function which is defined as integral, e.g.
>
> f := NIntegrate[(Sinc[1/x*u]), {u, 0, 1}]
>
> then I plotted it
> Plot[f, {x, 1, 2}]
>
> and it seems to be ok.
>
> But when I changed the function to LogLinearPlot
>
> datax = Reap[LogLinearPlot[f, {x, 1, 2}, EvaluationMonitor :> Sow[x]]]
>
> I obtained error message: "NIntegrate::ncvb:"NIntegrate failed to
> converge to prescribed accuracy after..." or other similar (e.g.
> Converge to slowly...) depending on function.
>
> But when I explicitly calculate values of function at points x of
> LogLinearPlot
>
> f /. {x -> datax}
>
> there is no error message.
>
> Why do I obtain this this message after calling LogLinearPlot but not
> in other cases? Are these values and plots reliable?
>
> Artur
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web