subject

Myvar = 0;
for (i=1, 30, i++)
myvar = myvar+module(i,2)*i;
end
a) what does this algorithm do?
b) what is it's cost?
c) is there a function that exists that could express the same result as this algorithm?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 25.06.2019 05:20
6. write a user-defined matlab function for the following math function: r() = 4cos(4sin ) the input to the function is  (in radians) and the output is r. write the function such that  can be a vector. a) use the function to calculate r(/6) and r(5/6). b) use the function to plot (polar plot) r() for 0 ≤  ≤ 2. hint: use “ polar” and/or for “polar plot in matlab." include the title “'r(\theta)=4cos(4sin(\theta))”
Answers: 1
question
Computers and Technology, 25.06.2019 23:30
What technology was created to replace the bios program on modern personal computer motherboards?
Answers: 1
You know the right answer?
Myvar = 0;
for (i=1, 30, i++)
myvar = myvar+module(i,2)*i;
end
a) what doe...
Questions
question
English, 29.11.2019 22:31
question
World Languages, 29.11.2019 22:31
question
History, 29.11.2019 22:31
Questions on the website: 13722363