Taylormain - much credit as I can receive. %Make the first...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%Bryan Choquette %ME82 %Assignment 5 Part 1 %evaluate the accuracy of the Taylor series %approximation clc clear all fprintf('see description in problem') %Run the Function f1=lnTaylor(x,20); f2=lnTaylor(x,50); %I could not get this function to work. I feel it may be a porblem with %my function but I couldnt figure it out. I am having difficulty inputing x %Instead I will continue with the problem and make well labeled graphs for as
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: much credit as I can receive. %Make the first plot plot(x,f1) hold on plot(x,f2) legend('n=20','n=50') title('Taylor series for varying n values') xlabel('x') ylabel('f(x)') %make the second plot plot(x,f1) hold on plot(x,log(x+1)) legend('x','ln(x+1)') title('Approximated Taylor series vs. Actual') xlabel('x') ylabel('ln(x+1)')...
View Full Document

Ask a homework question - tutors are online