Predictor-Corrector and trapeze method

1 次查看(过去 30 天)
Predictor-Corrector method. Write a program that solves
y′ = f(x,y)
y(x0)= y0, using trapeze method with fixed step h. For the predictor use Euler's method. Solve next equation with the step size h=0.5 and 0.25 on [0,10]:
y′=-y+2*cos(x); y(0)=1; y(x)=sin(x)+cos(x).
Please help me solve this problem, i also have to do a GUI for it, but at least i want to know the code that just solves the equation.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by