Re: Integration

*To*: mathgroup at smc.vnet.net*Subject*: [mg90301] Re: Integration*From*: "David Park" <djmpark at comcast.net>*Date*: Sat, 5 Jul 2008 04:49:06 -0400 (EDT)*References*: <g4kl8m$lru$1@smc.vnet.net>

Rohan, You didn't give us enough of a record of what you actually did. I suspect that you didn't actually define f properly. Here is an example that works. f[x_] := x NIntegrate[f[x], {x, 0, 1}] 0.5 N[Integrate[f[x], {x, 0, 1}]] 0.5 -- David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ "Eomer" <eomer_28 at hotmail.com> wrote in message news:g4kl8m$lru$1 at smc.vnet.net... > Hello, > > 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? > > Thanks > Rohan. >