Skip to content

Numerical integration with R

2 messages · Christofer Bogaso, David Winsemius

#
On Jun 14, 2014, at 7:40 AM, Christofer Bogaso wrote:

            
You are posting a problem with no data. You are also not explaining what you are trying to do. In particular, what was your intent when you wrote:

    upperLimit = c(Inf, Inf)   # ????

When I run this with finite limits that are increasing in range  and several values for a length 2 "x"-vector

x <- c(0.1,0.1)
x <-c(.1, 0 )
x <- c(10,10)
x <- c(10, -10)

I consistently get:

#------------
$integral
[1] 0

$error
[1] 0

$functionEvaluations
[1] 17

$returnCode
[1] 0
#---------------

Which makes me think there is something mathematically degenerate about your "L" expression.
Arrrgh. Pray tell, exactly how many years have you been posting to R-help? I've checked... and it's really not that difficult to get gmail to send plain text.