Question

Problem #5 Equation 1 is the infinite Taylor series expansion of ln(1 + x), where In is the natural logarithm: 5 (-1)k+1 Eqn.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

%%%%Matlab code

clc;
close all;
clear all;
x=input('Enter the x : ');
N=input('Enter the number of term ;');
sum=0;
for n=1:N
sum=sum+(-1)^(n+1)*x^n/n;
end
fprintf('ln(1+%1.2f)=%f \n',x,sum);

OUTPUT:

Enter the x : 0.4
Enter the number of term ;10
ln(1+0.40)=0.336469

Add a comment
Know the answer?
Add Answer to:
Problem #5 Equation 1 is the infinite Taylor series expansion of ln(1 + x), where In...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT