Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

what are the provisions in the absence of Partnership Deed?

Answered: 1 week ago

Question

1. What is called precipitation?

Answered: 1 week ago

Question

1.what is dew ?

Answered: 1 week ago

Question

1.The difference between climate and weather?

Answered: 1 week ago