Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

Re: [R] row echelon form

Peng, C

2010-09-07


Author LoginPost Reply

Scott, it seems to have bug in your code:
> A=matrix(c(1,-2,3,9,-1,3,0,-4,2,-5,5,17),ncol=4,byrow=T)
> ref(A)
  [,1] [,2]   [,3]   [,4]
[1,]   1 -2.5 2.166667 7.833333
[2,]   0 1.0 3.000000 5.000000
[3,]   0 0.0 1.000000 2.000000

the row echelon is apparently incorrect.
--
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.