clc;
clear all;
x=0:4;
f=[30 33 28 12 -22];
h=1;
% f'(0) value by second order forward differece formula
f1=(1/(2*h))*(-3*f(1)+4*f(2)-f(3))
% f'(2) value by second order central differece formula
f2=(1/(2*h))*(f(2)-f(4));
% f'(4) value by second order Backward differece formula
f3=(1/(2*h))*(3*f(5)-4*f(4)+f(3))
% f''(0) value by second order Backward differece formula
f4=(1/(h^2))*(2*f(1)-5*f(2)+4*f(3)-f(4))
%%%%%%%%%%%% Solution
f1 =
7
f3 =
-43
f4 =
-5
>>
Question 4) (8 Marks) Given the following data: 0 1 4 -22 Flx) 30 28 12 Find f'(0),f (2),f'(4) an...
I1) Consider a population with data values of 12 8 28 22 12 30 14. The population mean is B) 12 C) 18. D) 14.
0.35 Question 4 1 pts Find Quartiles for the following set of data 4, 8, 12, 18, 20, 22, 26, 30 O Q1 10, Q2 19, Q3 24 O Q1 4, Q2 20, Q3 30 O Q1 12, Q2 20, Q3 26 O Q1 -8, Q2 20, Q3 36 Question 5 1 pts Find the Median for the following set of data: 25, 20, 8, 10, 28, 16, 22, 15 O 22 O 19 O 18 O 25 1 pts...
1, 2, 4, 6, 7, 8, 11, 12, 16, 20, 28, 30 5) Given the following data: . What is the percentile of the 8 data value? Sketch the boxplot for the data (so you'll need to find Q1, Q2, a Q3, etc.).
Question For the following data: 24 13 28 1525 29 15 4 910 17 22 33 17 16 32 11 12 1820 13 27 1822 20 14 2614 19 19 4031 172123 26 1824 21 27 i. Compile a grouped frequency distribution where the lower limit of the first class is 5 and the class size for all the classes is 5 (5 marks) i. Draw the histogram ii Compute the mode for the grouped data. iv. Compute the median...
The second derivative of f(x) is given below: F"(x) = 22 – 2 – 30 Find the largest open interval where f(x) is concave down. (-6,5) (5,6) (-5,6) (1,00) (-6,-5) (-0,1) Submit Answer Tries 0/99 Communication Blocked Send Feedback Type here to search O e 9 A a 49 12:39 PM 1/9/2020 6
4. (35 points) Use multiple linear regression to fit the following experimental data, 12 1 4 5.5 1.5 5 y 13 22 16 9 9 (a) Compute the coefficients, the coefficient of determination , the standard deviation Sy, and the standard error of the estimate S/. Show your calculations. (b) Write a MATLAB script that solves part (a).
Q3. [22 marks] The Dirichlet's problem for a disc of radius a is stated as follows: r(a, θ)-/(0) for osas2m, where the function f (0) is integrable [10 marks] Find the general solution of u(r, θ) (i) (7 marks] if f (θ)-sin|-θ | , find the specific solution u (r,0) (ii) [ (ii) [5 marks] Use the solution in (ii) to deduce that 4n1-9) 18 Q4. [24marks] Consider the second order linear partial differential equation
Q3. [22 marks] The Dirichlet's...
Exercise 6: Given the table of the function f(x)-2" 2 X 0 3 2 f(x) 1 2 4 8 a) Write down the Newton polynomials P1(x), P2(x), Pa(x). b) Evaluate f(2.5) by using Pa(x). c) Obtain a bound for the errors E1(x), E2(x), Es(x) Exercise 7: Consider f(x)- In(x) use the following formula to answer the given questions '(x) +16-30f+16f,- 12h a) Derive the numerical differentiation formula using Taylor Series and find the truncation error b) Approximate f'(1.2) with h-0.05...
Homework 4 - False Position Find the zeros of the function f(x) within the interval (-4, 6) using the False Position method with f(-4) > 0 what you must know before you start working on the homework: f(-1) <0 f(x) = sin(21(x/5) + exp(x/5) f(+6) > 0 (a) Write a Matlab function that computes the values for f(x) when xis given as an input. (b) Write a Matlab script entitled "myplot.m” that plots the functions f(x) within the interval (-4,...
4. Consider the following partial information about a function f(x): S.x2, 0<x<I, (2-x), 1<x<2. Given that the function can be extended and modelled as a Fourier cosine-series: (a) Sketch this extended function in the interval that satisfies: x <4 (b) State the minimum period of this extended function. (C) The general Fourier series is defined as follows: [1 marks] [1 marks] F(x) = 4 + ] Ancos ("E") + ] B, sin("E") [1 marks] State the value of L. (d)...