SetDelayed and NIntegrate
- To: mathgroup at smc.vnet.net
- Subject: [mg47805] SetDelayed and NIntegrate
- From: "Mukhtar Bekkali" <mbekkali at iastate.edu>
- Date: Tue, 27 Apr 2004 04:47:44 -0400 (EDT)
- Organization: Iowa State University
- Sender: owner-wri-mathgroup at wolfram.com
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
- Follow-Ups:
- Re: SetDelayed and NIntegrate
- From: Anton Antonov <antonov@wolfram.com>
- Re: SetDelayed and NIntegrate