[R] R solve equation
Paul Smith
phhs80 at gmail.com
Mon Feb 9 22:05:24 CET 2009
On Mon, Feb 9, 2009 at 4:46 PM, Giovanni Petris <GPetris at uark.edu> wrote:
>
> As suggested by somebody else, uniroot() can be used to solve
> equations in one unknown variable. However, you will never get the
> "exact x" in R, only an approximate root...
>
> Best,
> Giovanni
>
>> Date: Sat, 07 Feb 2009 02:20:10 -0800 (PST)
>> From: oryie <43248523 at qq.com>
>> Sender: r-help-bounces at r-project.org
>> Precedence: list
>>
>>
>> Hello!
>>
>> I want to use R to calculate the variable x which is in some eqation, give
>> an example:
>>
>> 3*x-log(x)+1=0,
>>
>> how to solve equation to get the exact x in R?
That is correct, Giovanni. But the given equation has no (real) solution.
Paul
More information about the R-help
mailing list