Hello all! Maybe it's a newbie question(in fact I _am_, a newbie), but I hope you'll find the solution. I have an equation system which has k equation and n variables (k<n). I would like to obtain a description of the solutions (which can be the equation of lines or a plane, or everything else) with the lesser degree of freedom, obviously using R. In other words, I would like to obtain a result which is very similar to the results of Maxima or similar software. I tried to search on internet and i found the systemfit package, but I think it is not related with my problem. Any idea? Thanks in advance, Moreno
Is your system of equations linear? --- On Fri, 14/8/09, Moreno Mancosu <nomero at tiscali.it> wrote:> From: Moreno Mancosu <nomero at tiscali.it> > Subject: [R] Solutions of equation systems > To: r-help at r-project.org > Received: Friday, 14 August, 2009, 2:29 AM > Hello all! > > Maybe it's a newbie question(in fact I _am_, a newbie), but > I hope you'll find the solution. > I have an equation system which has k equation and n > variables (k<n). > I would like to obtain a description of the solutions > (which can be the equation of lines or a plane, or > everything else) with the lesser degree of freedom, > obviously using R. > In other words, I would like to obtain a result which is > very similar to the results of Maxima or similar software. > I tried to search on internet and i found the systemfit > package, but I think it is not related with my problem. > Any idea? > > Thanks in advance, > > Moreno > > ______________________________________________ > 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. >
Moshe Olshansky wrote:> Is your system of equations linear? >dear sir, Yes, the system is linear. It can have this form: a x + b y + c z = d e x + f y + g z = h But it can be more complex. I would like to calculate in R the solutions under the form of equation of x,y and z. Any idea? Thanks in advance, Moreno
?solve -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Moreno Mancosu > Sent: Friday, August 14, 2009 1:23 AM > To: Moshe Olshansky; r-help at r-project.org > Subject: Re: [R] Solutions of equation systems > > Moshe Olshansky wrote: > > Is your system of equations linear? > > > dear sir, > > Yes, the system is linear. It can have this form: > > a x + b y + c z = d > e x + f y + g z = h > > But it can be more complex. I would like to calculate in R the > solutions > under the form of equation of x,y and z. > Any idea? > > Thanks in advance, > > Moreno > > ______________________________________________ > 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.