![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 17.09.2021 21:40 biancasamadp3usfw
2. (Roots of unity revisited: adapted from LM 3.1–24) In Problem 2, Homework 1, we calculated all five roots of x 5 + 1, but it required a number of lines of code. In this problem, we will do this more compactly for a more general x n + 1. Recall that −1 = e πi = e 3πi = e 5πi = · · · , but, if we take the nth root, we obtain n distinct values e πi/n, e3πi/n, e5πi/n , . . . , due to the periodicity of the complex exponentials; think Euler. (a) Write a script which, given a positive integer n, finds all n roots of x n + 1 at once, using ONE statement. It must also print out all n of these roots neatly using either disp or fprintf in tabular form. A loop may be used for printing results, but is not allowed in the calculation of the roots. (b) Run the script with n = 3, 5, 7, and 1
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 01:30
Someone wishes to run the software on another computer system that runs an operating system that does not support the software what can he do
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 09:30
Is a string of code written to hurt others by damaging or destroying
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 10:30
Dave has to create animations for a game. which tool can dave use?
Answers: 3
You know the right answer?
2. (Roots of unity revisited: adapted from LM 3.1–24) In Problem 2, Homework 1, we calculated all fi...
Questions
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 20.08.2019 03:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 20.08.2019 03:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 20.08.2019 03:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 20.08.2019 03:30
![question](/tpl/images/cats/fizika.png)
Physics, 20.08.2019 03:30
![question](/tpl/images/cats/mat.png)
Mathematics, 20.08.2019 03:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 20.08.2019 03:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 20.08.2019 03:30
![question](/tpl/images/cats/fizika.png)
Physics, 20.08.2019 03:30