Doing Math in R(Assignment 5)

 Greetings Professor,

In this assignment #5, I did math problems by using matrices and vectors using different functions for the assignment. This is a brief explanation of the code and the functions that I used in this assignment 5.

1. The first step is to give values for the variables for the matrix and to convert the values from rows to columns and columns to rows I used the 'transpose' function to the code[t(A), t(B)].

2. To create the two vectors I used the 'c()' function for the code.

3. To multiply the matrices I used the vectors as a function and assigned the values in code.

4. To multiply the matrix by matrix I used the % by A*a and B*b to the code and re-assigned the values of a and b by using the matrices to the code.

5. To inverse a value I assigned new values by the variable 'S' of 2X5 with 2 rows and used solve(S) and to check or to calculate the determinants values I used det(S) to the code to get the desired results professor. Please check the code attached below professor.


In my GitHub repository, I posted my code and results in pictures Professor. And this is my GitHub repository link: 
https://github.com/Jahnavi193/Assignment5#assignment5

Thank you.



Comments