Question

In: Electrical Engineering

Part B: In mathematics a series is, roughly speaking, a description of the operation of adding...

Part B: In mathematics a series is, roughly speaking, a description of the operation of adding infinitely many quantities, one after the other, to a given starting quantity. The study of series is a major part of calculus. Write matlab code that calculates and displays the sum of the values of the series 5k^2-2k where we only have 15 values of k (k=1,2,3...15). Use a for loop . Be sure to initialize the total at the very beginning of your code. The total should be 5960

PartC: Write a matlab program ( using a while loop) to determine the number of terms ( which we’ll call s) required for the sum of the series in part B to exceed ten thousand. Display the number of terms. The answer should be 18

Solutions

Expert Solution

%% Matlab code to calculate the sum of the series
%
sum=0; % initilalizing the sum value with '0'
for k=1:1:15 % find the sum of series for k= 1 to 15
S=5*k^2-2*k; % expression of the series, for k
sum=sum+S; % adding the value of series at k to the previous sum
end % end of the for loop
sum=sum

%% Matlab code to find the number of numbers to be in series, so that
% the sum is greater than a value
%
sum=0; % initializing the sum value with '0'
k=0;
while sum<10000 % checkk wether the sum is exceeding 10000, if not it
% will continue to add the next number
k=k+1; % if the sum doesnt exceed 10000, then k will increase
% to next number
S=5*k^2-2*k; % expression of the series, for k
sum=sum+S; % adding the value of series at k to the previous sum
  
end % end of the while loop. exits when sum exceeds 10000
k=k
% now the k value will be the number of terms required for the sum of
% the series is exceeds ten thousand


Related Solutions

Roughly speaking, a firm has increasing returns to scale if doubling all inputs leads to output...
Roughly speaking, a firm has increasing returns to scale if doubling all inputs leads to output increasing by more than a factor of two. Decreasing returns to scale is when doubling all of a firm's inputs, while likely increasing output, increases output by less than a factor of two. Whether returns to scale are increasing or decreasing often depends on how much room for increased specialization a firm has. Do you have experience, as either an employee or a customer,...
There are many applications of the Fibonacci series both in mathematics and in the real world....
There are many applications of the Fibonacci series both in mathematics and in the real world. The Fibonacci series is obtained by starting with 0 and 1, and each subsequent term in the series is obtained by adding the previous two terms. Given n in the top row of the table below, the numbers in the second row represent Fib(n), the numbers in the Fibonacci series. So Fib(0) = 0, and Fib(1) = 1. Then Fib(2)is obtained by adding Fib(0)and...
discrete mathematics 1.  Show that if a | b and b | a, where a and...
discrete mathematics 1.  Show that if a | b and b | a, where a and b are integers, then a = b or a = -b.   //Ex. 5, Page 208. 2. Show that if a, b, c, and d are integers such that a | c and b | d, then ab | cd. //Ex. 6, Page 208.  3. What are the quotient and remainder when a) 44 is divided by 8? b) 777 is divided by 21? f)...
Give a step by step description of the physics and mathematics needed to calculate the trajectory...
Give a step by step description of the physics and mathematics needed to calculate the trajectory of a water bottle rocket in three dimensions. In addition, if the location of the landing of a water bottle rocket could be controlled, what is the physics and mathematics needed to establish control? Consider the question in three dimensions.
Give a step by step description of the physics and mathematics needed to calculate the trajectory...
Give a step by step description of the physics and mathematics needed to calculate the trajectory of a water bottle rocket. In addition, if the location of the landing of a water bottle rocket could be controlled, what is the physics and mathematics needed to establish control?
Ignoring the mathematics, please explain the operation of the Krugman model in economic terms, and indicate...
Ignoring the mathematics, please explain the operation of the Krugman model in economic terms, and indicate the principal lesson of it.
Part B Time-series analysis and forecasting [4+8+6+6+22+9= 55 Marks] This part you will be doing time-series...
Part B Time-series analysis and forecasting [4+8+6+6+22+9= 55 Marks] This part you will be doing time-series analysis and forecast a time-series variable. Gather data for any country for any ONE variable with at least 20 periods, the data to be quarterly. This part to be done in Excel file only. Provide below information: Country Variable Variables measurement units Variable simplified measurement units # of periods ( n ? 20) Note: Variable (simplified measurement units) will be used in the analysis....
Provide a brief description of 7 plus Seven series and the main character of the series.
Provide a brief description of 7 plus Seven series and the main character of the series.
A small firm intends to increase the capacity of a bottleneck operation by adding a new...
A small firm intends to increase the capacity of a bottleneck operation by adding a new machine. Two alternatives, A and B, have been identified, and the associated costs and revenues have been estimated. Annual fixed costs would be $38,000 for A and $31,000 for B; variable costs per unit would be $7 for A and $11 for B; and revenue per unit would be $19. a. Determine each alternative’s break-even point in units. (Round your answer to the nearest...
A small firm intends to increase the capacity of a bottleneck operation by adding a new...
A small firm intends to increase the capacity of a bottleneck operation by adding a new machine. Two alternatives, A and B, have been identified, and the associated costs and revenues have been estimated. Annual fixed costs would be $36,000 for A and $31,000 for B; variable costs per unit would be $7 for A and $11 for B; and revenue per unit would be $18. a. Determine each alternative’s break-even point in units. (Round your answer to the nearest...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT