Re: [R] What solve() does?

2010-09-04 Thread Paul Johnson
On Wed, Sep 1, 2010 at 5:36 AM, Petar Milin pmi...@ff.uns.ac.rs wrote: Hello! Can anyone explain me what solve() function does: Gaussian elimination or iterative, numeric solve? In addition, I would need both the Gaussian elimination and iterative solution for the course. Are the two built in

Re: [R] What solve() does?

2010-09-04 Thread David Winsemius
On Sep 4, 2010, at 2:29 PM, Petar Milin wrote: Thank you so much! This is very useful! Any thoughts about how to run Gaussian elimination? Do some searching? RSiteSearch(gaussian elimination, restrict = c(Rhelp10, Rhelp08, Rhelp02, functions ) ) returns (among other things) a link

Re: [R] What solve() does?

2010-09-03 Thread Peng, C
If A is a squared matrix, solve(A) gives the inverse of A; if you have a system of linear equation AX=B, solve(A,B) gives the solution to this system of equations. For example: x-2y =1 -2x+3y=-3 A=matrix(c(1,-2,-2,3), ncol=2, byrow=T) B=c(1,-3) # to get the inverse of A solve(A)

[R] What solve() does?

2010-09-01 Thread Petar Milin
Hello! Can anyone explain me what solve() function does: Gaussian elimination or iterative, numeric solve? In addition, I would need both the Gaussian elimination and iterative solution for the course. Are the two built in R? Thanks! PM __