Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
clc;
f=@(t,y)(-y+2*cos(t));
t0=input("enter the initial value");
b=input("enter at which value is to be evaluated");
h=input("input step size");
y0=input("the value of function at t0");
n=(b-t0)/h;
for i=1:n
k1=h*f(t0,y0);
k2=h*f(t0+h,y0+k1);
y1=y0+(k1+k2)/2;
t0=t0+h;
y0=y1;
end
disp(y1);
Citation pour cette source
Akshay (2026). na-lab-eulermodified (https://fr.mathworks.com/matlabcentral/fileexchange/120538-na-lab-eulermodified), MATLAB Central File Exchange. Extrait(e) le .
Informations générales
- Version 1.0.0 (1,17 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0 |
