diff options
Diffstat (limited to 'Introduction_To_Linear_Algebra_by_Gilbert_Strang/CH2/EX2.7.1')
-rw-r--r-- | Introduction_To_Linear_Algebra_by_Gilbert_Strang/CH2/EX2.7.1/Ex2.7_1.r | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Introduction_To_Linear_Algebra_by_Gilbert_Strang/CH2/EX2.7.1/Ex2.7_1.r b/Introduction_To_Linear_Algebra_by_Gilbert_Strang/CH2/EX2.7.1/Ex2.7_1.r new file mode 100644 index 00000000..025c7589 --- /dev/null +++ b/Introduction_To_Linear_Algebra_by_Gilbert_Strang/CH2/EX2.7.1/Ex2.7_1.r @@ -0,0 +1,12 @@ +# Example : 1 Chapter : 2.7 Pageno : 108 +# Inverses and Transposes +A<-matrix(c(1,6,0,1),ncol=2) +AT<-t(A) +A1<-solve(A) +print("The inverse and transpose of the matrix are ") +print(A1) +print(AT) +print("Transpose of A-1 is ") +print(t(A1)) +print("Invere of A transpose is") +print(solve(AT))
\ No newline at end of file |