[R] solving simultaneous Equations in R

Berend Hasselman bhh at xs4all.nl
Wed Dec 11 12:43:02 CET 2013


On 11-12-2013, at 12:16, eliza botto <eliza_botto at hotmail.com> wrote:

> Dear users of R,
> I'm trying to solve the following 2 equations simultaneously in R for "x" and "y". I couldn't get through due to my limited knowledge of R.
> 
> 3=1-[(x-1)!(2x-y-1)!/(2x-1)!(x-y-1)!] 
> 
> 6={[(x-y-1)!/(x-1)!]-[3(2x-y-1)!/(2x-1)!]+[2(3x-y-1)!/(3x-1)!]}/{[(x-y-1)!/(x-1)!]-[(2x-y-1)!/(2x-1)!]}
> 
> obviously, ! is factorial.
> kindly help me out on it or at least suggest something.
> I'll be extremely grateful.

There are several packages that solve a system of equations.
ktsolve, nleqslv, BB, which you can find in CRAN Task views: "Numerical Mathematics” and “Optimization”.

You will have to write your equations in standard R notation.
I can’t tell if your system is solvable.

Berend

> Eliza
> 
> 
> 		 	   		  
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> 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 mailing list