Question: Write a Matlab function myLog that takes as input x and the number N and outputs as y the estimate of ln ( x )
Write a Matlab function myLog that takes as input x and the number N and outputs as y the estimate of lnx using Eq and the
corresponding true relative error tre. For the true value of lnx use Matlabs buildin function logx 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 x ie Eq i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
