Re: [R] Inconsistent computation of an integral

2013-12-20 Thread William Dunlap
ll Dunlap Spotfire, TIBCO Software wdunlap tibco.com From: Aurélien Philippot [mailto:aurelien.philip...@gmail.com] Sent: Friday, December 20, 2013 8:59 AM To: William Dunlap; R-help@r-project.org Subject: Re: [R] Inconsistent computation of an integral Thanks William. I was convinced by pmax, until I pl

Re: [R] Inconsistent computation of an integral

2013-12-20 Thread Aurélien Philippot
; > Sent: Thursday, December 19, 2013 10:38 AM > > To: R-help@r-project.org > > Subject: [R] Inconsistent computation of an integral > > > > Dear R experts, > > I computed the same integral in two different ways, and find different > > values in R. > > The differe

Re: [R] Inconsistent computation of an integral

2013-12-19 Thread William Dunlap
rg] On > Behalf > Of Aurélien Philippot > Sent: Thursday, December 19, 2013 10:38 AM > To: R-help@r-project.org > Subject: [R] Inconsistent computation of an integral > > Dear R experts, > I computed the same integral in two different ways, and find different > values in R. &

[R] Inconsistent computation of an integral

2013-12-19 Thread Aurélien Philippot
Dear R experts, I computed the same integral in two different ways, and find different values in R. The difference is due to the max function that is part of the integrand. In the first case, I keep it as such, in the second case, I split it in two depending on the values of the variable of integra