Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING MATLAB, FOR THE LOVE OF GOD PLS DON'T DON'T WRITE THE FUNCTION WITHOUT THE ACTUAL INPUT, USE THE SAMPLE EQUATION ON THE IMAGE, DON'T

USING MATLAB, FOR THE LOVE OF GOD PLS DON'T DON'T WRITE THE FUNCTION WITHOUT THE ACTUAL INPUT, USE THE SAMPLE EQUATION ON THE IMAGE, DON'T SEND ME A FUKKING CODE WITHOUT THE ACTUAL PROBLEM IN IT, AND I DON'T MEAN AT THE END, IF YOU WRITE "F" WRITE THE EQUATION INSTED.

image text in transcribed

Develop 2 user defined functions to evaluate the root of an equations f(x) using Newton-Raphson and Secant methods. Inputs for each user defined function: - Equation f(x) as an anonymous function or symbolic function, depending on the method. Derivative should be done by the code, not the user. - Initial Value(s) - Desired approximate percent relative error is n significant figures. Test your function by calculating the lowest positive root off =x525x2+25, which is 1.0211 Requirements for each function: - Must use while loop. - Error definition. a=CurrentapproximationCurrentapproximationPreviousapproximation100% - Must use if statement(s) - Output display: Using \#\#\# Method, the root is located at \#\#\# after \#\# iterations

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_2

Step: 3

blur-text-image_step3

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

ISBN: 1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

When should the last word in a title be capitalized?

Answered: 1 week ago

Question

LO2 Compare three types of individual incentives.

Answered: 1 week ago