Question
please use matlab only
COMPUTER PROBLEMS 8.6 1. Write a computer program to solve this initial-value problem using the Taylor-series method. Include
0 0
Add a comment Improve this question Transcribed image text
Answer #1

function sol=taylor1(fn,dfn,a,b,y0,n)

h=(b-a)/n;

x=a+(0:n)*h;

y(1)=y0;

for k=1:n

y(k+1)=y(k)+h*feval(fn,x(k),y(k)) + (h^2*feval(dfn,x(k),y(k)))/2;

end

sol=[x',y'];

Add a comment
Know the answer?
Add Answer to:
please use matlab only COMPUTER PROBLEMS 8.6 1. Write a computer program to solve this initial-value problem using the Taylor-series method. Include terms in h, h2, and h and continue the solution...
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