MathGroup Archive 1998

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

Search the Archive

nlim error message using an NIntegrate function in Plot[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg13158] nlim error message using an NIntegrate function in Plot[]
  • From: Robert Wright <robert.wright4 at virgin.net>
  • Date: Mon, 13 Jul 1998 07:42:09 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Can someone explain why i get 'nlim' error using the following function
in a Plot command. I guess its an Evaluate order problem but i can't
see where to place the Hold(First/All)

\!\(\(\nF[a_, n_Integer]\  := \ \n
    Module[{x}, \ \n\t\t
      NIntegrate[
        \(1\/\(\(2\^\(n/2\)\) Gamma[n/2]\)\) x\^\(n/2 - 1\)\ \ 
          Exp[\(-\(x\/2\)\)], \ {x, 0, a}]\ \n\t\t]\)\)

<< Graphics`Legend`

Plot[ { 
		F[N[2T/MTBF],2], 
		F[N[2T/MTBF],4],
		F[N[2T/MTBF],6]}, {T,0,400},
    PlotStyle ->
        {GrayLevel[0], Dashing[{.03}], Dashing[{.01}]},
    PlotLegend -> {"k=0", "k=2","k=3" },
	  LegendPosition -> {.8, -.7},
    LegendTextSpace -> .9,
	    LegendLabelSpace -> .5,
    LegendLabel -> "DOF"]

Is there a way of making the legend better shaped too?



  • Prev by Date: Re: Starting Sound in Mathematica for Windows
  • Next by Date: Re: Int.
  • Previous by thread: Re: Protection against some Front end problems and crashes
  • Next by thread: 3DGraphics color problem