Question: Exercise 7 (5 points) An n x n matrix is called an orthogonal matrix if its columns form an orthonormal basis for R. This implies

Exercise 7 (5 points) An n x n matrix is called an orthogonal matrix if its columns form an orthonormal basis for R". This implies that A is orthogonal if and only if A-1 = A? if and only if ATA= AAT = 1 Example: For any , the matrix cos sin e sin e cos is an orthogonal matrix. Implement a function that takes as its argument and returns the above orthogonal matrix as a 2D numpy array. [] import numpy as np def rotation(theta): ########## Your code goes here ############# ###################********************######## [] project_1_tests.test_rotation(rotation)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
