Problem 1: Understanding of Discretization of Variables and Iterations Consider the summation of the square of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Problem 1: Understanding of Discretization of Variables and Iterations Consider the summation of the square of a continuous function f(x): k y = f(x) i=1 where x is a vector of length k defined as a set of evenly-spaced values from a to b, i.e., in MATLAB we define: x=linspace(a, b,k) and k=1,2,3,..., etc. a) Develop a numerical solver (i.e., function) to execute the above algorithm and determine the maximum number of terms in the summation before it exceeds a user-specified value ymax. The solver should have the following input/output structure. function [y, N] = SquaredFunctionSum (fun, a, b,ymax) where, the output N is the maximum number of terms in the series such that the sum does not exceed ymax. b) Test your developed numerical solver on the function f(x) = x with inputs a=1, b=3, ymax=1999. i=1 Critical Thinking: The mathematical problem is to determine the number of terms in the discretization of the variable x and the summation such that k_(f(x)) Ymax. Note that as k increases, so does the number of elements of x. This is a fundamental concept in digitization, e.g., in digital control problems. Consider the example: f(x) = x, a = 1, b = 3, and ymax = 10. For k = 3, the sum is 1 + 2 + 3 = 14 which exceeds the maximum allowable sum of 10. For k = 2, the sum is 1 + 3 10 which does not exceed the ymax. Hence k = : 2 is the maximum number of terms in the discretization of x such that (f(x)) Ymax. = Problem 1: Understanding of Discretization of Variables and Iterations Consider the summation of the square of a continuous function f(x): k y = f(x) i=1 where x is a vector of length k defined as a set of evenly-spaced values from a to b, i.e., in MATLAB we define: x=linspace(a, b,k) and k=1,2,3,..., etc. a) Develop a numerical solver (i.e., function) to execute the above algorithm and determine the maximum number of terms in the summation before it exceeds a user-specified value ymax. The solver should have the following input/output structure. function [y, N] = SquaredFunctionSum (fun, a, b,ymax) where, the output N is the maximum number of terms in the series such that the sum does not exceed ymax. b) Test your developed numerical solver on the function f(x) = x with inputs a=1, b=3, ymax=1999. i=1 Critical Thinking: The mathematical problem is to determine the number of terms in the discretization of the variable x and the summation such that k_(f(x)) Ymax. Note that as k increases, so does the number of elements of x. This is a fundamental concept in digitization, e.g., in digital control problems. Consider the example: f(x) = x, a = 1, b = 3, and ymax = 10. For k = 3, the sum is 1 + 2 + 3 = 14 which exceeds the maximum allowable sum of 10. For k = 2, the sum is 1 + 3 10 which does not exceed the ymax. Hence k = : 2 is the maximum number of terms in the discretization of x such that (f(x)) Ymax. =
Expert Answer:
Related Book For
Calculus For Business, Economics And The Social And Life Sciences
ISBN: 9780073532387
11th Brief Edition
Authors: Laurence Hoffmann, Gerald Bradley, David Sobecki, Michael Price
Posted Date:
Students also viewed these algorithms questions
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Let us first assume that an estimate k; of the queue length at the beginning of the i-th slot is available. In possession of that in- formation the Pseudo-Bayesian Algorithm is such that each node...
-
Complete problem 2.65 Fundamental Principles on page 72 of the textbook. In each of the situations, identify the elements of the fundamental principles that are most applicable. In addition, discuss...
-
Suppose your manager presents you with the following information about machines that could be used for a job, and wants your recommendation on which one to choose. The design specification width is...
-
Having the openings to both the trachea and the esophagus in the pharynx is problematic because it can lead to choking. Are there any advantages to this arrangement?
-
Fill in the blank with the answer. Each answer in the list may be used more than once or not at all. a. Separate and proportionate b. Racketeer Influenced and Corrupt Organization Act (RICO) c....
-
1. Using the function rbinom, roll a 100-sided die 1,000 times and report the total number of 1s that you get. 2. Assume that the grade distribution for this class is Normal, with mean = 70 and...
-
The forward price in the market to purchase a barrel of crude oil in 3 months is $105. The spot price of crude oil is $100 per barrel and the holding cost is $1 per month. The 3-month interest rate,...
-
Explain the differences between the types of training and how this affects planning
-
What are some of the KPIs that a business needs to focus on when evaluating a content strategy? Explain.
-
When pricing jobs (Job Evaluation Methods) describe the three methods. In your opinion, which method best promotes equity and fairness? Please explain.
-
Evaluate the key traits in the "Big Five" personality model andhow the traits predict behavior at work?
-
Comment on the current status and future of "Wearable technology."
-
Draft an email to Patricia Hodges summarizing your business proposal.
-
You've been asked to take over leadership of a group of paralegals that once had a reputation for being a tight-knit, supportive team, but you quickly figure out that this team is in danger of...
-
The radioactive isotope gallium-67 ( 67 Ga), used in the diagnosis of malignant tumors, has a half-life of 46.5 hours. If we start with 100 milligrams of the isotope, how many milligrams will be left...
-
In Exercises 15 through 30, find the derivative dy/dx. In some of these problems, you may need to use implicit differentiation or logarithmic differentiation. y = In e3x 1 + x
-
In Exercises 1 through 12, use the chain rule to compute the derivative dy/dx and simplify your answer. y = 1 3u 2 ; u = 3 2x
-
Diehl Cleaners has the following statement of financial position items. Instructions Classify each item as an asset, liability, or equity. Analyze the effect of transactions. Accounts payable Cash...
-
Erin Danielle, the bookkeeper for Liverpool Ltd., has been trying to determine the correct statement of financial position for the company. The companys statement of financial position is shown...
-
Which of the following is true? a. Financial frauds have not occurred in U.S. companies because GAAP has detailed accounting and disclosure requirements. b. Transaction analysis is basically the same...
Study smarter with the SolutionInn App