Question: Problem 2 / Mat labGrader ( 1 6 points ) The natural logarithm of a number x > 1 2 can be approximated by the

Problem 2/ Mat labGrader (16 points)
The natural logarithm of a number x>12 can be approximated by the scrics
ln(x)~~n=1N(x-1)nnxn
Write a Matlab function myLog that takes as input x and the number N and outputs as y the estimate of ln(x) using Eq.(1) and the corresponding truc relative crror tre. For the true value of ln(x) use Matlab's build-in function log(x) here and in the following problems. Code the function such that it can handle both scalar and column vector inputs for x, resulting in scalar, respective column vector outputs for y and tre. If any of the values for x are x12, i.c., Eq. I is not applicable, call Matlab's error function and output an appropriate crror message. Do not print any results to screen or do any plotting within the function.
Required submission:
well commented script source code submitted to Canvas link "Exam 1- Problem 2":
 Problem 2/ Mat labGrader (16 points) The natural logarithm of a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!