1. Use a Lagrange interpolating polynomial of the first and second order to evaluate the value...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Use a Lagrange interpolating polynomial of the first and second order to evaluate the value of y at x = 25 based on the data in the following table; X 10 30 50 0.424 7.7 1.6 y a) Solve by hand by using first-order polynomial and the second-order polynomial b) Draw the flow chart expressing the algorithm for the solution. c) Create an m-script containing a function evaluating the y-values for the pre-defined x-values by means of Lagrange's Interpolation Method. i. Write the MATLAB Code (m-script) on the answer sheet. ii. Add explanation (comment) with (%) for each line of MATLAB Code. iii. Build the m-script in MATLAB. iv. Run the m-script file and demonstrate the solution as screenshot using the "print screen" button on the keyboard. 1.2 2. Evaluate the integral1 e* dx, taking n = 5 using Simpson's 1/3 rule. a) Evaluate by hand using Simpson's Rule. b) Draw the flow chart expressing the algorithm for the solution. c) Create an m-script utilizing Simpson's 1/3 rule to evaluate this integral. i. Write the MATLAB Code (m-script) on the answer sheet. ii. Add explanation (comment) with (%) for each line of MATLAB Code. iii. Build the m-script in MATLAB. iv. Run the m-script file and demonstrate the solution as screenshot using the "print screen" button on the keyboard. 3. For the following differential equation: dy 5e0.6t - 2y; for 0 t 3, y(0)=1.5 n=5. dt a) Solve this differential equation by using fourth-order Runge-Kutta Method. b) Draw the flow chart of the algorithm for the solution of this solution. c) Perform the following; i) Write the MATLAB Code (m-script) on the answer sheet. ii) Add explanation (comment) with (%) for each line of MATLAB Code. iii) Build the m-script in MATLAB. iv) Run the m-script file and demonstrate the solution as screenshot using the "print screen" button on the keyboard. = la lb-i lb-ii lb-iii 1b-iv 2a 2b 2c-i 2c-ii 2c-iii| 2c-iv 3a 3b-i 3b-ii 10 10 10 2 1,5 1,5 5 2 10 10 10 10 5 3 3b-iii| 3b-iv 3c-i 3c-ii 3c-iii 2 2 2 2 2 1. Use a Lagrange interpolating polynomial of the first and second order to evaluate the value of y at x = 25 based on the data in the following table; X 10 30 50 0.424 7.7 1.6 y a) Solve by hand by using first-order polynomial and the second-order polynomial b) Draw the flow chart expressing the algorithm for the solution. c) Create an m-script containing a function evaluating the y-values for the pre-defined x-values by means of Lagrange's Interpolation Method. i. Write the MATLAB Code (m-script) on the answer sheet. ii. Add explanation (comment) with (%) for each line of MATLAB Code. iii. Build the m-script in MATLAB. iv. Run the m-script file and demonstrate the solution as screenshot using the "print screen" button on the keyboard. 1.2 2. Evaluate the integral1 e* dx, taking n = 5 using Simpson's 1/3 rule. a) Evaluate by hand using Simpson's Rule. b) Draw the flow chart expressing the algorithm for the solution. c) Create an m-script utilizing Simpson's 1/3 rule to evaluate this integral. i. Write the MATLAB Code (m-script) on the answer sheet. ii. Add explanation (comment) with (%) for each line of MATLAB Code. iii. Build the m-script in MATLAB. iv. Run the m-script file and demonstrate the solution as screenshot using the "print screen" button on the keyboard. 3. For the following differential equation: dy 5e0.6t - 2y; for 0 t 3, y(0)=1.5 n=5. dt a) Solve this differential equation by using fourth-order Runge-Kutta Method. b) Draw the flow chart of the algorithm for the solution of this solution. c) Perform the following; i) Write the MATLAB Code (m-script) on the answer sheet. ii) Add explanation (comment) with (%) for each line of MATLAB Code. iii) Build the m-script in MATLAB. iv) Run the m-script file and demonstrate the solution as screenshot using the "print screen" button on the keyboard. = la lb-i lb-ii lb-iii 1b-iv 2a 2b 2c-i 2c-ii 2c-iii| 2c-iv 3a 3b-i 3b-ii 10 10 10 2 1,5 1,5 5 2 10 10 10 10 5 3 3b-iii| 3b-iv 3c-i 3c-ii 3c-iii 2 2 2 2 2
Expert Answer:
Answer rating: 100% (QA)
Answer Using the provided data points we will first create the first and second order Lagrange interpolating polynomials in order to solve this proble... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
There are two people who apply for a job. One is highly skilled, the other one is not. Their productivities (profits that they bring to the employer) are $1000 and $300, respectively. Their...
-
THIRD AVENUE SOFTWARE HEALTH-CARE APP PROJECT This case is new for the ninth edition of Information Technology Project Management . The case provides an opportunity to apply agile and Scrum...
-
Observed that Covid-19 has impacted the kinds and quantities of cultural digital products accessible to people? - Please give a concrete example. How do people engage in the cultural content consumed...
-
Explain why each of the following statements about profit-maximizing competitive firms is incorrect. Restate each one correctly. a. A competitive firm will produce output up to the point where price...
-
On July 31, 2017, Mexico Company paid $3,000,000 to acquire all of the common stock of Conchita Incorporated, which became a division of Mexico. Conchita reported the following balance sheet at the...
-
Gekko Properties is considering purchasing Teldar Properties. Gekko's analysts project that the merger will result in incremental after-tax net cash flows of $2 million, $4 million, $5 million, and...
-
4. In the early 1970s, President Nixon became embroiled in the Watergate dispute. He was accused of covering up a criminal break-in at the national headquarters of the Democratic Party. Nixon denied...
-
Refer to the gasoline sales time series data in Table. a. Compute four- and five-week moving averages for the time series. b. Compute the MSE for the four- and five-week moving average forecasts. c....
-
??????? Find the present value of the following ordinary annuity. The present value is \( \$ \) (Round the final answer to the nearest cent as needed. Round all intermediate values to six decimal...
-
List the advantages and disadvantages of the three different types of business organizations.
-
Which of the following investments generates a higher annual rate of return ? A $1,000 return on a $10,000 investment after 10 years or A $1,000 return on a $10,000 investment for 1 year? Explain.
-
Outline the concept of present value. The interest rate is 7 per cent. Use the concept of present value to compare 200 to be received in 10 years and 300 to be received in 20 years.
-
What is culture?
-
Discuss the differences in pay systems between U.S. and Japanese firms. To what extent are these differences culturally determined?
-
Figure P32.41 shows resistors \(R_{1}=10.0 \Omega\) and \(R_{2}=20.0 \Omega\) connected in parallel to an AC source. (a) If the maximum current in the circuit is \(12 \mathrm{~A}\), what is the...
-
Statistics from the International Labour Organization in 2019 suggest that there are around 64 million young people (those aged between 16 and 23) unemployed worldwide and that 145 million young...
-
Figure 1 State of the economy Probability of state of Return on A (%) Return on B (%) economy Boom 0.2 10 15 Growth 0.3 -5 0 Normal 0.4 5 10 Recession 0.1 0 20
-
How do individual companies respond to economic forces throughout the globe? One way to explore this is to see how well rates of return for stock of individual companies can be explained by stock...
-
Use the LDLt Factorization Algorithm to find a factorization of the form A = LDLt for the following matrices: a. b. c. d. 4 1 A=1-1 30 Li 02 3 422 1138 2163 0311 1114 1021 1301 4111
-
The following sequences are linearly convergent. Generate the first five terms of the sequence {n} using Aitken's (2 method. a. p0 = 0.5, pn = (2 epn1 + p2n1)/3, n 1 b. p0 = 0.75, pn = (epn1/3)1/2,...
-
Show that, for any k, zt-1-1 2t-2 28-2-1 (e+)-E(+(-)*-)+E 2 f(a+ ihi-1). i-1 i-1
-
Consider the family of differential equations \(x^{\prime}=x^{3}+\delta x^{2}-\mu x\). a. Sketch a bifurcation diagram in the \(x \mu\)-plane for \(\delta=0\). b. Sketch a bifurcation diagram in the...
-
For each problem, determine equilibrium points, bifurcation points, and construct a bifurcation diagram. Discuss the different behaviors in each system. a. \(y^{\prime}=y-\mu y^{2}\) b....
-
Plot phase portraits for the Lienard system \[\begin{aligned} & x^{\prime}=y-\mu\left(x^{3}-x ight) \\ & y^{\prime}=-x \end{aligned}\] for a small and a not so small value of \(\mu\). Describe what...
Study smarter with the SolutionInn App