subject

Activity #1: Matrix multiply and plot. a) You will create a program that repeatedly multiplies a matrix by a point and plots the data to the screen. In this case, we will have a 2D point, (x, y). The point can be represented as a vector: vv = � xx yy�. We can also define a 2x2 matrix, MM = � aa bb cc dd �. Computing the product of M with v gives us a new point v’: = vv′. We can then use v’ as the new point, multiply by matrix M again, and get another point, i. e. MMvv′ = vv′′. This can go on indefinitely, creating a long sequence of points. Create a program that uses numpy to create a matrix and a point. Specifically, you should begin with the point (1, 0), and the matrix: � 1.00583 −0.087156 0.087156 1.00583 �. Then, repeatedly multiply the matrix by the point to get a new point. You should repeat this between 150 and 250 times. Note: the purpose of this part of the assignment is to get practice with numpy, so you should use numpy for your operations, even if you find it easier to perform this computation a different way. Then, make your program plot the data points, using matplotlib. Be sure to label the axes, and include a title. Your title should give a brief description of the shape that the points "trace" out.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:10
Select the correct answer. emma, the quality control manager in a software development company, asks the testing team to check whether the user interface is friendly. to which type of testing is emma referring? a. usability testing b. data comparison c. validation testing d. stress testing e. destruction testing
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
Howard is designing a chair swing ride. the swing ropes are 5 meters long, and in full swing they tilt in an angle of 29° outside chairs to be 2.75 m above the ground in full swing.
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
You are new to microsoft certification and want to start out by getting a certification geared around windows 8. what microsoft certification should you pursue?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
You know the right answer?
Activity #1: Matrix multiply and plot. a) You will create a program that repeatedly multiplies a mat...
Questions
question
Mathematics, 14.11.2020 21:30
question
Mathematics, 14.11.2020 21:30
question
Chemistry, 14.11.2020 21:30
question
Law, 14.11.2020 21:30
question
Mathematics, 14.11.2020 21:30
question
English, 14.11.2020 21:30
Questions on the website: 13722359