Re: [R] Inverting integration

2008-11-09 Thread David Scott
On Sun, 9 Nov 2008, Yan (Daniel) Zhao wrote: Suppose I have a function f(x) (say, f(x)=exp(sin(x)), how do I find the number y such that the integral of f(x) on the interval of (-infinity, y) is equal to a specified number, say, .8? Thanks, Yan See ?uniroot David Scott ___

[R] Inverting integration

2008-11-09 Thread Yan (Daniel) Zhao
Suppose I have a function f(x) (say, f(x)=exp(sin(x)), how do I find the number y such that the integral of f(x) on the interval of (-infinity, y) is equal to a specified number, say, .8? Thanks, Yan [[alternative HTML version deleted]] __ R-h