MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

warning messages with Nintegrate and FindMinmum

  • To: mathgroup at
  • Subject: [mg65882] warning messages with Nintegrate and FindMinmum
  • From: "Ariel sumeruk" <ariel.sumeruk at>
  • Date: Thu, 20 Apr 2006 05:15:17 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

I am performing the following sequence of events. I am creating an
interpolating function to my data, which is a fairly smooth function. I then
use Nintegrate to define a function with a parameter Temp. I then construct
a function to minimize. And find the minimum

I am getting all kinds of errors and warning which don't make sense but I am
getting some results. How can I avoid getting these warning and have faith
in the results obtained? Is there a better way to do this?

The type of warnings are that the Nintegrate value is not numeric, or that
the integration is too slow. Both of which are not mathematically realistic
given that the functions are well defined.

(*fe= List of x and y values  which are fairly smooth;*)
(*The other detectors are similarly defined.*)
radTransX1[Temp_] :=   NIntegrate[expdist[x, Temp]*detector1[x]*x, {x, 0. 001,
1}, AccuracyGoal -> \[Infinity]];
radTransX2[Temp_] :=    NIntegrate[expdist[x, Temp]*detector2[x]*x, {x,
0.001, 1},  AccuracyGoal -> \[Infinity]];
radTransX3[Temp_] :=    NIntegrate[expdist[x, Temp]*detector3[x]*x, {x,
0.001, 1},  AccuracyGoal -> \[Infinity]];
radTransX4[Temp_] :=    NIntegrate[expdist[x, Temp]*detector4[x]*x, {x,
0.001, 1},  AccuracyGoal -> \[Infinity]];
radTransX5[Temp_] :=    NIntegrate[expdist[x, Temp]*detector5[x]*x, {x,
0.001, 1},  AccuracyGoal -> \[Infinity]];
radTransX6[Temp_] :=    NIntegrate[expdist[x, Temp]*detector6[x]*x, {x,
0.001, 1},   AccuracyGoal -> \[Infinity]];
Theory[Temp_, \[Alpha]_] := \[Alpha]*{radTransX1[Temp],
radTransX2[Temp], radTransX3[Temp], radTransX4[Temp], radTransX5[Temp],

The type of error message which are generated are

\!\(\*  RowBox[{\(NIntegrate::"inum"\), \(\(:\)\(\ \)\), "\<\"Integrand \
\\!\\(\\(\\(expdist[\\(\\(x <file://!//(//(//(expdist%5B//(//(x>,
\\ x\\) is not numerical at \\!\\({x}\\ <file://!//(%7Bx%7D//>) =
\\!\\({0.7925`}\\ <file://!//(%7B0.7925%60%7D//>). \
\\!\\(\\*ButtonBox[\\\"More=85\\\ <file://!//(//*ButtonBox%5B///%22More=85///>",
ButtonStyle->\\\"RefGuideLinkText\\\", \
ButtonFrame->None, ButtonData:>\\\"NIntegrate::inum\\\"]\\)\"\>"}]\)

\!\(\*  RowBox[{\(NIntegrate::"ncvb"\), \(\(:\)\(\ \)\), "\<\"NIntegrate
failed to \converge to prescribed accuracy after \\!\\(7\\ <file://!//(7//>)
recursive bisections in \\\!\\(x\\ <file://!//(x//>) near
= \\!\\(0.29998046874999995`\\ <file://!//(0.29998046874999995%60//>). \
\\!\\(\\*ButtonBox[\\\"More=85\\\ <file://!//(//*ButtonBox%5B///%22More=85///>",
ButtonStyle->\\\"RefGuideLinkText\\\", \ButtonFrame->None,


  • Prev by Date: Re: Re: Named Formats? (followup question)
  • Next by Date: Re: Re: Named Formats? (followup question)
  • Previous by thread: Re: Re: Named Formats? (followup question)
  • Next by thread: wanna see something glaringly weird?