[R] solve equations
bhh at xs4all.nl
Tue Jan 22 14:53:44 CET 2013
On 22-01-2013, at 14:20, paladini <paladini at beuth-hochschule.de> wrote:
> Hello !
> I have a rather mathematical than statistical question. I have a formula: P=R*T/(v-b) -a/(sqrt(T)*V*(V+b)) and I want to solve the equation for V , in terms of V= ..... Is this possible with R or have I to use another program perhaps octave?
Have a look at uniroot.
Since this is a single equation there is probably no need to look at more high powered alternatives such as packages nleqslv or BB.
And since you can rewrite your formula a quadratic you can also solve it with a simple function.
> thanking you in anticipation
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help