[R] solve scalar linear equation

Rui Barradas ruipbarradas at sapo.pt
Thu May 22 13:44:02 CEST 2014


Hello,

Because there is no root of that function in the interval c(0, 10). Just 
like the error message says.

Rui Barradas

Em 22-05-2014 11:28, message escreveu:
> On 2014-05-20 10:00, r-help-request at r-project.org wrote:
>> ------------------------------
>>
>> Message: 32
>> Date: Mon, 19 May 2014 23:04:27 +0100
>> From: Rui Barradas <ruipbarradas at sapo.pt>
>> To: message <letter at openmailbox.org>, r-help at r-project.org
>>
>> uniroot(function(x) 5*x - 55, c(0, 20))
>>
>
> Why does this instruction fail if the interval is changed?
>
>> uniroot(function(x) 5*x - 55, c(0, 10))
> Error in uniroot(function(x) 5 * x - 55, c(0, 10)) :
>    f() values at end points not of opposite sign
>



More information about the R-help mailing list