MathGroup Archive 2004

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

Search the Archive

SetDelayed and NIntegrate


Very simple question.   Is it possible in Mathematica 5 to execute this
code?

f[x_,y_]:=f[x,y]  (*where f[x,y] is some known function*)
g[x_]:=NIntegrate[f[x,y],{y,0,1}]
h[x_]:=D[g[x],x]
FindRoot[h[x]==0,x]

I get a message that Integrand is not numeric and FindRoot stops.   I would
like to make clear that I do not want to use Integrate.

My other question is why this code does not work

w=q^x;
With[{x=2},Plot[w,{q,0,1}]

Thanks. Mukhtar Bekkali



  • Prev by Date: Print Settings
  • Next by Date: RE: Parametric Plot.
  • Previous by thread: Re: Print Settings
  • Next by thread: Re: SetDelayed and NIntegrate