[R] Equate two (or more) functions
Berend Hasselman
bhh at xs4all.nl
Wed Apr 25 21:49:56 CEST 2012
On 25-04-2012, at 18:52, pannigh wrote:
> Dear List,
> I was wondering if there is a simple way to solve (equate) two functions in
> R. For example:
>
> (1) 5x + 3y = 30
> (2) 12x - 2y = 26
>
> I would like R to finde x = 3 and y = 5
> Is there an implemented function in R or would I have to write an own
> function?
And if your functions are nonlinear there is package nleqslv and BB.
Berend
More information about the R-help
mailing list