Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please explain how to use the MATLAB script below to solve the following question. Use code to find zero f(x) = ex - 3x2 in
Please explain how to use the MATLAB script below to solve the following question.
Use code to find zero f(x) = ex - 3x2 in the interval [-1,0].
plot the graph with labels
code is as follows :
function[r,fr,logre]=secantV2(fh,xnm1,xn) steps=0; maxsteps=20; re=1e-8; myrel=1; fnm1=fh(xnm1); fn=fh(xn); if abs(fn)>abs(fnm1) temp=xn; xn=xnm1; xnm1=temp; temp=fn; fn=fnm1; fnm1=temp; end; while myrel>re && steps please include a pic of the code working and a short explanation, I will rate your answer. Thanks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started