`Hey,
Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries
Please note as per the question you should have f.m file in your directory.
function [pN]=falseposition(c,d,N)
if(f(c)*f(d)>0)
disp('f(c) and f(d) are of same sign. So, no root');
pN=[];
end
for i=1:n
pN=d-((f(d)/(f(d)-f(c)))*(d-c));
d=c;
end
end
Kindly revert for any queries
Thanks.
1. (25 pts) Let f(x) be a continuous function and suppose we are already given the Matlab function "f.", with header "function y fx)", that returns values of f(x) Given the following...
2. Let X and Y be continuous random variables with joint probability density function fx,y(x,y) 0, otherwise (a) Compute the value of k that will make f(x, y) a legitimate joint probability density function. Use f(x.y) with that value of k as the joint probability density function of X, Y in parts (b),(c).(d),(e (b) Find the probability density functions of X and Y. (c) Find the expected values of X, Y and XY (d) Compute the covariance Cov(X,Y) of X...
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,...
Let f be a positive, continuous, and decreasing function for x ≥ 1, such that an = f(n). If the series ∞ an n = 1 converges to S, then the remainder RN = S − SN is bounded by 0 ≤ RN ≤ ∞ N f(x) dx. Use the result above to approximate the sum of the convergent series using the indicated number of terms. (Round your answers to four decimal places.) ∞ n = 1 1 n2 +...
1. Let X and Y be continuous random variables with joint pr ability density function 6e2re5y İfy < 0 and x < otherwise. y, fx,y (z,y) 0 (a) [3 points] Show that the marginal density function of Y is given by 3es if y 0, 0 otherwise. fy (y) = (b) |3 poin s apute the marginal density function of X (c) [3 points] Show that E(X)Y = y) =-y-1, for y 0 (d) 13 points] Compute E(X) using the...
Suppose f(x) is a given continuous function in -1,4] such that f(-1) and f(4) have different signs and consider the bisection method on f(x) using starting interval1,4]. (a) Bound the absolute error for the approximation c3o (Remember, we define co ao +bo)/2) (b) Use bisection method's bound on absolute error to determine which cn are guar- anteed to have absolute errors less than 10-9. Suppose f(x) is a given continuous function in -1,4] such that f(-1) and f(4) have different...
Let X be a continuous random variable with values in [ 0, 1], uniform density function fX(x) ≡ 1 and moment generating function g(t) = (e t − 1)/t. Find in terms of g(t) the moment generating function for (a) −X. (b) 1 + X. (c) 3X. (d) aX + b.
1. (25 pts) Given integer N>0; vector x of distinct nodes with N components; vector y of valucs at nodes with N components; location 2 complete the Matlab function with header function [valuelagrangeforminterpolation(N,x,yz) so that it uses the Lagrange form to output the value of the Lagrange interpolating polynomial at Remember Lagrange form: 1. (25 pts) Given integer N>0; vector x of distinct nodes with N components; vector y of valucs at nodes with N components; location 2 complete the...
7. Let X a be random variable with probability density function given by -1 < x < 1 fx(x) otherwise (a) Find the mean u and variance o2 of X (b) Derive the moment generating function of X and state the values for which it is defined (c) For the value(s) at which the moment generating function found in part (b) is (are) not defined, what should the moment generating function be defined as? Justify your answer (d) Let X1,...
-n ', S Let f(x,yZFz2_xy. Let v=<1,1,1>. Let point P=<2,1,3> a. Compute gradient of fx,y,z) b. If the contours are far apart, is the length of the gradient large or small? Answer: Explain! What MATLAB command is used to draw the gradient vectors? Answer: - c. Compute the directional derivative in the direction of v. d. Compute the equation of the tangent plane to f(x,y,z) at the point P. e. Use the chain rule to compute r if x t2,...
Exercise 25: Let f: [0,1R be defined by x=0 fx)/n, m/n, with m, n E N and n is the minimal n such that z m/n x- m/n, with m,n E N and n is the minimal n such that x a) Show that L(f, P) = 0 for all partitions P of [0, 1]. b) Let m E N. Show that the cardinality of the set A :-{х є [0, 1] : f(x) > 1/m} is bounded by m(m...