Re: Integration
- To: mathgroup at smc.vnet.net
 - Subject: [mg90315] Re: Integration
 - From: Bill Rowe <readnews at sbcglobal.net>
 - Date: Sat, 5 Jul 2008 04:51:42 -0400 (EDT)
 
On 7/4/08 at 3:55 AM, eomer_28 at hotmail.com (Eomer) wrote:
>I would like to numerically integrate a particular function. I
>define f to be equal to that function. Then, I do
>N[Integrate[f,{x,0,1}]. The output is f. Why? Why don't I get an
>answer?
How do you expect anyone to be able to answer your question when
you have provided no details as to you you defined f?
Does it help to have a working example? That is,
In[12]:= f = 2 x + 1;
NIntegrate[f, {x, 0, 1}]
Out[13]= 2.
In[14]:= g[x_] := Sin[x]
In[15]:= NIntegrate[g[x], {x, 0, \[Pi]/4}]
Out[15]= 0.292893