![f @ (x) -3.8* (x-777).^2 - 8.6.* (x-10) 500 - 777 Ploting function to get glimpse fplot (f, [0,1500]); f(x) xlabel(x) ylab](http://img.homeworklib.com/questions/3942e200-9328-11eb-b248-5939743a2579.png?x-oss-process=image/resize,w_560)
Text :-
f =@(x) -3.8*(x-777).^2 - 8.6.*(x-10) - 500 - 777;
% Ploting function to get glimpse
fplot(f,[0,1500]); xlabel('x'); ylabel('Depth y = f(x)')
grid on
% From this plot it is clear that closest point lies in range
% x = 500 to 100
% Derivative of function f'(x), say g(x)
g = @(x) -3.8*2*(x-777) - 8.6;
% We have to find roots of g(x) = 0 using bisection
% Initial guesses
xl = 500; xu = 1000;
xr = (xl+xu)/2; % 1st approximation using bisection method
err = abs(g(xr)); % defining error for 1st approximation
tol = 1e-6; % Convergence tolerance
% Subsequent iterations
while err > tol % While error > tolerace, continue doing iterations
% Guess replacement for next iteration
if g(xl)*g(xr) < 0 % if g(xl) and g(xr) have opposite signs,
xu = xr; % then, xu = xr for next iteration
else
xl = xr; % else if they have same signs, xl = xr
end
xr = (xl+xu)/2; % Next approximation using bisection method
err = abs(g(xr)); % Updating error
end
% Now our converged root is in xr
fprintf('\nFor the point closest to the surface :-');
fprintf('\n\t Distance from your location, x = %.4f',xr);
fprintf('\n\t Depth from surface, y = %.4f \n', abs(f(xr)));
result :-


Project rules The course projects offer you the chance to earn a total of up to...
X=5 ,y=4 ,z=0
Project rules The course projects offer you the chance to earn a total of up to 5% of your grade. They designed to accompany the course material and develop your programming skills. The project needs to be solved in MATLAB or Octave. We will simulate some real applications and you will have to submit individually. To respect your workload from other courses, the deadlines are generous, but be respectful of them. Late submission will not be accepted...
In order to successfully complete this project, you need to study the following topics in the course textbook: - Volume using Cross Sections (Section 6.1) Volume using -Arc Length (Section 6.3) - Areas of Surfaces of Revolution (Section 6.4) Shells (Section 6.2) General Comments about t This project is designed to be done in groups of 3. The project report is reflection of your investigation on the questions. This means your report should begin with an introductory paragraph in which...
can this code be provided?
Project #3
Introduction
As you wrap up with JavaScript, let's put together everything
you've learned to make the classic game "Hangman" in a
webpage.
If you are unfamiliar with the rules of Hangman, the game
works like this:
A gallows is drawn on a surface, and Player 1 chooses a word
that player 2 must guess.
Empty dashes for each letter in the word are drawn next to the
gallows (so a 7-letter word means...
For this course project, you will use various database management and programming techniques to design and develop an online sales and distribution system for a fictitious organization. There are two phases—you will complete the first phase this week and the second phase in W5 Assignment 2. Rationale The focus of the project is to develop your database programming skills. This project will help you get a fair idea of the sales and distribution system in any organization that has a...
I have this case study to solve. i want to ask which
type of case study in this like problem, evaluation or decision? if
its decision then what are the criterias and all?
Stardust Petroleum Sendirian Berhad: how to inculcate the pro-active safety culture? Farzana Quoquab, Nomahaza Mahadi, Taram Satiraksa Wan Abdullah and Jihad Mohammad Coming together is a beginning; keeping together is progress; working together is success. - Henry Ford The beginning Stardust was established in 2013 as a...