Starting from:

$25

COEN140-Lab2: Linear Algebra Solved

1.      Create a 2×5 matrix ๐€ with elements as random float numbers from 0 to 1. Print the rank of ๐€.

 

Let ๐ = ๐€๐€๐‘‡, find the shape and rank of ๐

 

Let ๐‚ = ๐€๐‘‡๐€, find the shape and rank of ๐‚ 

 

 

2.      Create a 3×5 matrix ๐— with elements as random integers from 0 to 10, and find the dimension (shape) of ๐€ = ๐—๐—๐‘‡ by coding;

 

Create a 3×1 column vector ๐ฐ with elements as random integers from 0 to 10, and find the dimension of ๐€๐ฐ by coding;  

 

Find the dimension of ๐ฐ๐‘‡๐€ by coding;

 

Find the dimension of ๐ฐ๐‘‡๐€๐ฐ by coding.

 

Find a way (by coding) to verify that ๐—๐—๐‘‡ is symmetric.

 

 

Calculate ๐€−1. Print ๐€−1๐€ and ๐€๐€−1.

 

 

3.      Create a 5×1 column vector ๐ฑ with elements as random float numbers from 0 to 1.   Calculate ๐ฑ๐ฑ๐‘‡ by coding. What do you think is the rank of ๐ฑ๐ฑ๐‘‡?

 

 

4.      Create a 5×5 identity matrix ๐ˆ and print it.

 

 

More products