solve by matlab 1. Solve the equation f(x) = 5x4-2.7x2-2x+0.5 in the interval [0
ID: 3111506 • Letter: S
Question
solve by matlab
1. Solve the equation f(x) = 5x4-2.7x2-2x+0.5 in the interval [0.1,0.5] using the Bisection Method with error less than 0.00001 Answer 2. Use Fixed Point Iteration to estimate the fixed point of g(x) =-HT275+25500 using Po = 3 and error less than 0.0001. Answer: 3. Estimate the root off(x) = sin(YF-02 +3 using the Secant Method with Po = 0 and Pi = l and accuracy of 5 x 10-9. Answer: 4. Use False Position Method to solve the equation xesin 3 in the interval -3,3] with error less than 4 x 107 AnswerExplanation / Answer
Solution :- (1)
We have to use the Matlab code of the bisection method to find the solution of the equation f(x) = 5x4 - 2.7x2 -2x +0.5 in the interval [0.1,0.5].
Let us do it below.
a=0.1;
b=0.5;
tol=1e-5;
fa=5*a*a*a*a-2.7*a*a-2*a+0.5;
fb=5*b*b*b*b-2.7*b*b-2*b+0.5;
while abs(b-a) >tol
c=(a+b)/2;
fx=5*c*c*c*c-2.7*c*c-2*c+0.5;
if fa*fc<0
b=c;
fb=fc;
elseif fb*fc<0
a=c;
fa=fc;
else
break
end
end
x=c
Answer x = 0.2
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.