diff options
author | prashantsinalkar | 2019-10-04 12:24:07 +0530 |
---|---|---|
committer | prashantsinalkar | 2019-10-04 12:24:07 +0530 |
commit | b3f3a8ecd454359a2e992161844f2fb599f8238a (patch) | |
tree | 7bb3f64824627ef179d5f341266a664fd0b69011 /Linear_Algebra_by_Jim_Hefferon/CH1/EX3.5 | |
parent | 80492d3788738910b80dc16f918511057b7321d6 (diff) | |
download | R_TBC_Uploads-b3f3a8ecd454359a2e992161844f2fb599f8238a.tar.gz R_TBC_Uploads-b3f3a8ecd454359a2e992161844f2fb599f8238a.tar.bz2 R_TBC_Uploads-b3f3a8ecd454359a2e992161844f2fb599f8238a.zip |
Initial commit/added all books
Diffstat (limited to 'Linear_Algebra_by_Jim_Hefferon/CH1/EX3.5')
-rw-r--r-- | Linear_Algebra_by_Jim_Hefferon/CH1/EX3.5/Ex1_3_5.R | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Linear_Algebra_by_Jim_Hefferon/CH1/EX3.5/Ex1_3_5.R b/Linear_Algebra_by_Jim_Hefferon/CH1/EX3.5/Ex1_3_5.R new file mode 100644 index 00000000..c0a2bc07 --- /dev/null +++ b/Linear_Algebra_by_Jim_Hefferon/CH1/EX3.5/Ex1_3_5.R @@ -0,0 +1,18 @@ +#Example 3.5,chapter 1,section 1.3,page 25
+#package used matlib v0.9.1
+#install package using command: install.packages("matlib")
+#Github reposiory of matlib :https://github.com/friendly/matlib
+
+#installation and loading library
+#install.packages("matlib")
+library("matlib")
+
+#program
+A <- matrix(c(7,8,0,0,0,1,1,3,-7,-5,-3,-6,0,-2,0,-1),ncol=4)
+b <- c(0,0,0,0)
+Ab <- cbind(A,b)
+Ab <- rowadd(Ab,1,2,-8/7)
+Ab <- rowadd(Ab,2,3,-1)
+Ab <- rowadd(Ab,2,4,-3)
+Ab <- rowadd(Ab,3,4,-5/2)
+Ab
\ No newline at end of file |