We have solved all the problems and plotted the required graph in MATLAB.
MATLAB script:
A=[1 8 64; 1 16 256; 1 24 576];
b=[11.843; 9.84; 8.418];
a=A\b
T=[0 8 16 24 32 40];
O=[14.621 11.843 9.87 8.418 7.305 6.413];
t=0:0.1:40;
o=a(1)+a(2)*t+a(3)*t.^2;
plot(T,O,'-o',t,o,'--');
>> xlabel('T^o C')
ylabel('o(mg/l)')
legend('Actual data','Quadratic line')
please help with #1 a and b. thank you Use the following data for all problems:...
2. The following data defines the sea-level concentration of dissolved oxygen for fresh water as a function of temperature: T0 O 14.621 11.843 9.870 8.418 7.305 8 16 24 32 Write a MATLAB code for Lagrange Interpolation to find 1st degree and 2nd degree polyno- mial approximation to the value of O(27) 2. The following data defines the sea-level concentration of dissolved oxygen for fresh water as a function of temperature: T0 O 14.621 11.843 9.870 8.418 7.305 8 16...
by matlab 2. The following data defines the sea-level concentration of dissolved oxygen for fresh water as a function of temperature: T0 8 16 24 32 14.621 11.843 9.870 8.418 7.305 Write a MATLAB code for Lagrange Interpolation to find 1st degree and 2nd degree polyno- mial approximation to the value of 0(27). 2. The following data defines the sea-level concentration of dissolved oxygen for fresh water as a function of temperature: T0 8 16 24 32 14.621 11.843 9.870...
Consider the following set of data x f(x) 3 6 4 3 5 8 1. Use and order Newton polynomial to find f (4.5). 2. Use and order Lagrange polynomial to find f (4.5). You should get the same answer using both methods they are just different representations of a quadratic (i.e., 2nd order) interpolating polynomial.
PLEASE SOLVE THE WHOLE QUESTION Numerical method I. 20 points. USE 3 DECIMAL PLACES IN ALL CALCULATIONS. Given the following data, calculate f(2) using Newton's Interpolating polynomial of order 1, order 2 and order 3. What is the true error in each case if the true value of the function atx2is 507 100 5260 Solution: 20 과 260 Write your final answers in the table shown below: Description O Order 1 Order 2 Order 3 True error, % I. 20...
Homework 5 (35 Points max) Please Submit all Matlab and Data files that you create for this homework Problem 1 (max 20 Points): For the second-order drag model (see Eq.(1)), compute the velocity of a free-falling parachutist using Euler's method for the case where m80 kg and cd 0.25 kg/m. Perform the calculation from t 0 to 20 s with a step size of 1ms. Use an initial condition that the parachutist has an upward velocity of 20 m/s at...
please solve question no 5 and 6 05.02.2 The acceleration- time data for a small rocket is given in tabular form below. 5. 20 22 18 24 16 14 12 10 Time (s) Acceleration 106.6 (m/s) 37.1 45.8 56.2 30.1 68.0 80.9 94.1 a) Use Newton's divided difference quadratic polynomial interpolation to find the acceleration at t = 15.5 seconds. Be sure to choose your hase points for good accuracy b) Use the quadratic interpolant of part (a) to find...
Please help with this algorithms design problems. Thank you. Use substitution method: 1. Show that the solution of T(n) = T(n-1) +n is O(n) Use master method to find tight asymptotic bounds: 2. T(n) = 2*T(n/4+n 3. T(n) = 2*T(n/4) + n2
Not sure how to do this, please help! thank you! Consider the following function. f(x) = x sin(x), a = 0, n = 4, -0.7 SXS 0.7 (a) Approximate f by a Taylor polynomial with degreen at the number a. T4(x) = T(x) when x lies in the given interval. (Round M up to the nearest integer. Round your answer to (b) Use Taylor's Inequality to estimate the accuracy of the approximation f(x) four decimal places.) R4(x) (c) Check your...
Please help me solve the problem 3) a and b. Thank you very much!!! Suppose you are asked to estimate the 1st quartile (25% point) from a distribution. You are given a sample of size 30: 7.34 8.16 8.69 8.80 8.82 9.28 9.29 9.38 9.43 9.51 9.65 9.78 9.84 9.95 9.98 9.99 10.02 10.05 10.37 10.42 10.52 10.67 10.78 10.87 11.05 11.12 11.19 11.37 11.54 11.92 Given sorted here. a. If I just tell you the data is an id...
please I need this now thank you Use the table below to answer problems 14 and 15 Price Demand Supply 2 5 8 11 14 18 14 9 5 3 0 5 9 14 18 14. Explain how the equilibrium market price is determined with the help of demand and supply curves (3 pts.). 15. Write the equilibrium market price, the equilibrium market demand, and the equilibrium market supply (4 pts.). 16. What are the determinants of demand (2 pts.)?...