summaryrefslogtreecommitdiff
path: root/Linear_Algebra_by_Jim_Hefferon/CH1/EX1.8
diff options
context:
space:
mode:
authorprashantsinalkar2019-10-04 12:24:07 +0530
committerprashantsinalkar2019-10-04 12:24:07 +0530
commitb3f3a8ecd454359a2e992161844f2fb599f8238a (patch)
tree7bb3f64824627ef179d5f341266a664fd0b69011 /Linear_Algebra_by_Jim_Hefferon/CH1/EX1.8
parent80492d3788738910b80dc16f918511057b7321d6 (diff)
downloadR_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/EX1.8')
-rw-r--r--Linear_Algebra_by_Jim_Hefferon/CH1/EX1.8/Ex1_8.R17
1 files changed, 17 insertions, 0 deletions
diff --git a/Linear_Algebra_by_Jim_Hefferon/CH1/EX1.8/Ex1_8.R b/Linear_Algebra_by_Jim_Hefferon/CH1/EX1.8/Ex1_8.R
new file mode 100644
index 00000000..c4f0cdcf
--- /dev/null
+++ b/Linear_Algebra_by_Jim_Hefferon/CH1/EX1.8/Ex1_8.R
@@ -0,0 +1,17 @@
+#Example 1.8,page 5
+#package used: matlib
+#installation run command : install.packages("matlib")
+#package repo : https://github.com/friendly/matlib
+
+#installing and loading library
+#install.packages("matlib")
+library("matlib")
+
+#program
+A <- matrix(c(40,-50,15,25),ncol = 2)
+b <- c(100,50)
+Ab <- cbind(A,b)
+Ab <- rowadd(Ab,1,2,1.25)
+Ab
+#from row2 : 43.75c = 175,so c= 4
+#from row1 : 40h+15c=100,so h=1