Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using matlab Goal: This assignment is about Taylor polynomials for the natural logarithmic function ln(x) and the absolute error in using these polynomials to approximate

using matlab image text in transcribed
Goal: This assignment is about Taylor polynomials for the natural logarithmic function ln(x) and the absolute error in using these polynomials to approximate ln(x). What you have to submit: Two Matlab m-files; one a function file and the second a script file. Submit these files on ilearn. TASKS 1. Create a Matlab function file named taylor-approx-ln.m, which takes as input a real number x (or a vector), a real number a>0, and a non-negative integer n. The function outputs are (a) pn(x), the value of the nth Taylor polynomial of ln(x) about the point x=a evaluated at x. (b) The absolute value of the error in the approximation. 2. Create a Matlab script file named plot_taylor_approx_ln.m. Let a=1. Plot ln(x),p0(x),p1(x), p2(x),p3(x),p10(x) on the interval [0.1,2.3]. Have all graphs on the same figure file and use the Matlab legend command to label each graph

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions