This assignment was primarily concerned with the use of matrices within R.
The first part of this task was to create matrices that printed 100 and 1000 numbers across 10 rows, respectively. The matrix A contained 1:100 and matrix B contained 1:1000. The first step was to create two vectors. I decided to use the runif() function to create my vectors.
The results are a randomized sequence of numbers generated to fill the vector without concern for significant figures or specific characteristics. The distribution is as such likely normal. The second task was to find the determinant of the matrices and use a few calculations to find out more about the data. This step involved multiplying the matrices by the vectors and the matrices by one another; the new matrices were used to apply the det() function and find the determinant.
In hindsight I think I should have put more restrictions on the randomly generated numbers. Size and digits contributed to a messy string of numbers that allowed for longer series to be printed.
No comments:
Post a Comment