[R] Tool for solving equations

David Winsemius dwinsemius at comcast.net
Tue Sep 29 02:49:31 CEST 2009


On Sep 28, 2009, at 6:22 PM, Dmitry Gospodaryov wrote:

> Does exist any tool in R to solve equations, especially complex  
> exponential equations?
> For example:
> y = 100*exp(b*(1-exp(c*x))/c)
> If it is so, then what is the package i have to
> use and what is algorythm for this solving?
> Thank you for advance.
> With regard, Dmitry.
>

You want an analytical solution of 100*exp(b*(1-exp(c*x))/c) = 0 in  
terms of b and c?

library(Ryacas)  # perhaps

Or do you want to specify b and c and get a numerical solution?

?uniroot
?polyroot

Or find the minimum of y?

?nlm  # and others mentioned on that page.

-- 
David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list