We studied in basic algebra under complex numbers that the nth roots of unity. 2kx 2...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We studied in basic algebra under complex numbers that the nth roots of unity. 2kx 2² = 1 ⇒ z = (cos ( 24 ) :( cos( 2k² ) + i sin (2Kr)). / k = 0,1...n-1 n selects in equally spaced points on the unit circle. One implication of this is that if we find the cube roots of unity, we can create an equilateral triangle. Thus, One way to find an equilateral triangle on a unit circle centered at the origin is using the expression. 2kx (²Kr)), k=0.1.2 2³ = 1=z=(cos (cos (2k ² ) + i sin ( One way therefore to create an equilateral triangle with one vertex at an arbitrary point, is to translate the vertices above by the position vector of the arbitrary point. Which just amounts to addition of complex numbers. In [ ]: def unit_equilateral(n): # YOUR CODE HERE raise Not ImplementedError() Thus to get an equilateral triangle with one vertex at (2,3) we can find the cube root of unity and add the complex number 1 + 3i to each vertex since (1.0) is a vertex of the cube root of unity Create a function unit_equilateral(n) that takes as input a complex number and returns an equilateral triangle with one vertex centred at the point. Your code should return a list a list of 3 complex numbers where each element in the list is a vertex of the triangle. We studied in basic algebra under complex numbers that the nth roots of unity. 2kx 2² = 1 ⇒ z = (cos ( 24 ) :( cos( 2k² ) + i sin (2Kr)). / k = 0,1...n-1 n selects in equally spaced points on the unit circle. One implication of this is that if we find the cube roots of unity, we can create an equilateral triangle. Thus, One way to find an equilateral triangle on a unit circle centered at the origin is using the expression. 2kx (²Kr)), k=0.1.2 2³ = 1=z=(cos (cos (2k ² ) + i sin ( One way therefore to create an equilateral triangle with one vertex at an arbitrary point, is to translate the vertices above by the position vector of the arbitrary point. Which just amounts to addition of complex numbers. In [ ]: def unit_equilateral(n): # YOUR CODE HERE raise Not ImplementedError() Thus to get an equilateral triangle with one vertex at (2,3) we can find the cube root of unity and add the complex number 1 + 3i to each vertex since (1.0) is a vertex of the cube root of unity Create a function unit_equilateral(n) that takes as input a complex number and returns an equilateral triangle with one vertex centred at the point. Your code should return a list a list of 3 complex numbers where each element in the list is a vertex of the triangle.
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
Does the set of the nth roots of unity [Eq. (1.36)] with the rule of combination being ordinary multiplication form a group? Justify your answer.
-
(a) Explain in detail why the nth roots of 1 lie on the vertices of a regular n-gon. What is the angle between two consecutive sides? (b) Explain why this is also true for the nth roots of any...
-
MA +q is 2. Consider an industry with quantity-setting firms that produce a homogeneous good. The inverse demand function for the good is p = A-Q, where Q = 9 +9 + the aggregate quantity. All firms...
-
Graph the solution of each system given in Problems 5-18. \(\left\{\begin{array}{l}x \geq 0 \\ y \geq 0 \\ x <500 \\ y \leq 1,000\end{array}ight.\)
-
Identify a company in your local community that develops a product through some form of manufacturing process. Consider a farming operation, bakery, cement supplier, or other company that converts or...
-
Cougar Corporation began operations on January 1, 2010. The following information is available for Cougar Corporation on December 31, 2010. Prepare an income statement, a retained earnings statement,...
-
You are considering investing money in Treasury bills and wondering what the real risk-free rate of interest is. Currently, Treasury bills are yielding 4 percent and the future inflation rate is...
-
The following are the balance sheets of Farrell Corporation as of December 31, 2007 and 2006, and the statement of income and retained earnings for the year ended December 31, 2007: Additional...
-
The standard interface technology for wireless networks is _ _ _ _ _ _ _ _ _ _ . The hardware component necessary for computers to connect to these networks is a _ _ _ _ _ _ _ _ _ _ .
-
Bear Park, a camping ground in the Lake District, has compiled the following financial information as of December 31, 2020. Instructions a. Determine Bear Parks net income for 2020. b. Prepare a...
-
The following information relates to a companys accounts receivable: gross accounts receivable balance at the beginning of the year, $310,000; allowance for uncollectible accounts at the beginning of...
-
Draw up G. Stoner's statement of financial position from the following information as at 31 December 2015: Capital 44,400 Accounts receivable 1,600 Car 16,600 Accounts payable 1,800 Equipment 15,800...
-
Which is better for a lender: 5% compounded annually or 5% compounded quarterly?
-
What is the day convention for (a) Treasury bonds, (b) corporate bonds and, (c) Treasury bills in the United States?
-
Give two reasons why Treasury rates are less than other very low risk rates in the United States.
-
Under what circumstances is the futures price greater than the expected future spot price according to (a) Keynes and Hicks and (b) systematic risk considerations?
-
You are the marketing manager for a company that makes and markets designer sunglasses. Recently, your boss suggested to you that the company should try to get its sunglasses worn by more actors and...
-
The manager for retail customers, Katie White, wants to hear your opinion regarding one business offer she has received from an entrepreneur who is starting a mobile phone app called Easy Money. The...
-
See Table 2.5 showing financial statement data and stock price data for Mydeco Corp. a. Compute Mydecos PE ratio each year from 2019 to 2023. In which year was it the highest? b. What was Mydecos...
-
See Table 2.5 showing financial statement data and stock price data for Mydeco Corp. a. Compute Mydecos ROE each year from 2019 to 2023. b. Compute Mydecos ROA each year from 2019 to 2023. c. Which...
-
In early 2018, United Airlines (UAL) had a market capitalization of \($25.14\) billion, debt of \($12.73\) billion, and cash of \($5.59\) billion. United also had annual revenues of \($38.72\)...
Study smarter with the SolutionInn App