Re: [R] Linear system

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Wed 25 May 2005 - 22:52:17 EST

Jim Gustafsson wrote:

> Dear R-help
>
> I have a problem solving a linear system like
>
> 353a+45b+29c=79
> 45a+29b+3c=5
> 29a+3b+4c=8
 >
> Is there any way of doing this in R?

You already said it yourself ("solve"):

A <- rbind(c(353, 45, 29), c(45, 29, 3), c(29, 3, 4)) solve(A, c(79, 5, 8))
# [1] 0.1784625 -0.1924954 0.8505186

Uwe Ligges

> Best Regards
> Jim
>
>
> ------------------------------------------------------------------------------
> This e-mail and any attachment may be confidential and may also be privileged.
> If you are not the intended recipient, please notify us immediately and then
> delete this e-mail and any attachment without retaining copies or disclosing
> the contents thereof to any other person.
> Thank you.
> ------------------------------------------------------------------------------
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 25 23:13:06 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:05 EST