讲解:Python、Python、Python、LATEX

You must show all steps and rst solve for L and U using pen and paper or LATEX.2. (10 points) Now repeat the process of nding an inverse of the matrix in 1) using partioning of matrices.3. (10 points) When a deep space probe is launched, corrections may be necessary to place the probeon a precisely calculated trajectory. Radio telemetry provides a stream of vectors, x1;:::;xk , givinginformation at di erent times about how the probe’s position compares with its planned trajectory. LetXk be the matrix [x1;:::;xk]. The matrix Gk = XkXTk is computed as the radar data are analyzed.When xk+1 arrives, a new Gk+1 must be computed. Since the data vectors arrive at high speed,the computational burden could be severe. But partitioned matrix multiplication helps tremendously.Compute the column{row expansions of Gk and Gk+1 and describe what must be computed in orderto update Gk to form. Gk+1.4. Find formulas for X;Y, and Z in terms of A;B; and C and justify your calculations. In some cases,you may need to make assumptions about the size of a matrix in order to produce a formula. [Hint:Compute the product on the left, and set it equal to the right side.]5. (10 points) Let A be a lower triangular nXn matrix with nonzero entries on the diagonal. Show thatA is invertible and A 1 is lower triangular. [Hint: Explain why A can be changed into I using only rowreplacements and scaling. (Where are the pivots?) Also, explain why the row operations that reduce Ato I change I into a lower triangular matrix.]6. Solve the equation Ax = b by using the LU factorization given for A.All matrices are in capital letters and bold. All vectors are in lower case and bold. All scalars are lower case and notbolded.yif you are not familiar with gsubmit, come to my o ce hours and I am happy to show you how it works.代做Python程序、Python课程设计代做、帮做Python编程作业、LATEX编程代写 No emailsubmissions will be accepted7. Create a Python le called question7.py and write the following functions:(a) (5 points) def matrixMul(A, B):’’’Returns the multiplication of matrix A and B.If the Matrix A and B cannot be multiplied, return back suitable error message’’’(b) (5 points) def matrixT(A):’’’Returns the Transpose of the Matrix A’’’(c) (5 points) def matrixAdd(A, B):’’’Returns the addition of Matrix A and B.If the Matrix A and B cannot be added, return back suitable error message’’’You can test your code out as follows:A = [[1, 3, 5], [2, 4, 7], [1, 1, 0]]B = [[1, 2, 6], [2, 4, 7], [1, 1, 8]]print matrixT(A) #This prints back the transpose of Aprint matrixMul(A,B) #This prints back the multiplication of A and Bprint matrixAdd(A,B) #This prints back the addition of A and BYou can visualize, the Python code i.e. list of listA = [[1, 3, 5], [2, 4, 7], [1, 1, 0]]as the following matrix: A=A = [[1, 3, 5], [2, 4, 7], [1, 1, 0]]B = [[1, 2, 6], [2, 4, 7], [1, 1, 8]]print matrixMul(A,B) #This prints back the multiplication of A and BFor the above test case, your code will print out the following:[[12, 19, 67], [17, 27, 96], [3, 6, 13]]Page 2A = [[1, 3, 5], [2, 4, 7], [1, 1, 0]]B=[[1], [1], [1]] #This is a column vectorprint matrixMul(A,B)For the above test case, your code will print out the following:[[9], [13], [2]]Make sure to use Python 2.7.x when writing your code.NoteThere is 10% bonus, if you submit your assignment using LATEX. We expect to see a .tex le and a .pdf leas part of your submission. You must show all the steps in detail and decent formatting.转自:http://ass.3daixie.com/2018052158549172.html

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容