How to write ordinary differantial equations ?bvb

F=@(x); dy=@(x,y); x0=; xn=; y= ;h= ;fprintf(‘x\t\t y (Euler)\t y(analytical)\n’); fprintf(‘%f\t %f\t %f\n’,x0,y,f(x0); for x=x0:h:xn-h.. y=y+dy(x,y)*h; x=x+h; fprintf(‘%f\t %f\t %f\n’,x,y,f(x)); end

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Preguntada:

el 15 de Jun. de 2022

Respondida:

el 15 de Jun. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by