Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Challenge question: Logarithmic spiral In this question we are going to use some simple matrix transformations to create some fun plots. A point p =

Challenge question: Logarithmic spiral
In this question we are going to use some simple matrix transformations to create some fun plots.
A point p=(x,y) in two space can be represented as a column vector, i.e. a 21 matrix
p=[xy]
Such a point can be rotated counter clockwise radians about the origin by multiplying on the left by the matrix:
[cos()-sin()sin()cos()]
For example we could represent the rotation of the point p=(1,2) by 2(90) counter clockwise as:
[0-110][12]=[-21]
Furthermore, a point can be scaled by s with respect to the origin by multiplying on the left by the matrix
[s00s]
Notes:
You are allowed to use loops and comprehensions.
The above plot was made with the call plot_log_spiral(505,5,1.e1)
The title should be the same as in the plot above, i.e. of the form "Logarithmic Spiral: n={n}, rotation ={theta in radians to 2 decimal places
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

What are your thoughts of management accounting?

Answered: 1 week ago

Question

Should civil service employees be allowed to unionize? Why?

Answered: 1 week ago