Question: Please write MATLAB code. Thank you HW1_5 problem 3.13/4.1 Start with the Cody template (reproduced below) Tip for using Cody: Be sure to test negative
Please write MATLAB code. Thank you

HW1_5 problem 3.13/4.1 Start with the Cody template (reproduced below) Tip for using Cody: Be sure to test negative input and zero input in your MATLAB before submitting on Cody function [x, ea] = mysgrt (a,es) %calculates square root by divide and average (Chapra 3.13 & Chapra 4.1) %INPUT a: a scalar real number es: error stopping criterion, % %OUTPUT x: square root of a ea: the final error, % x-a; %replace this line with your code to solve for the square root of X end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
