Matlab实现——Euler's Method
来源:互联网 发布:linux history 倒序 编辑:程序博客网 时间:2024/06/11 06:07
euler.m
%Program9.1 (Euler's Method)function E=euler(f,a,b,ya,M)%Input - f is the function entered as a string ??f??% - a and b are the left and right endpoints% - ya is the initial condition y(a)% - M is the number of steps%Output - E=[T?? Y??] where T is the vector of abscissas % and Y is the vector of ordinatesh=(b-a)/M;T=zeros(1,M+1);Y=zeros(1,M+1);T=a:h:b;Y(1)=ya;for j=1:MY(j+1)=Y(j)+h*feval(f,T(j),Y(j));endE=[T' Y'];
fun.m
function f=fun(t,y)f=3*y+3*t;
untitled.m
a=0;b=2;ya=1;M=20;f='fun';E=euler(f,a,b,ya,M)
- Matlab实现——Euler's Method
- Matlab Euler's method
- Matlab实现——Adams-Bashforth-Method
- Matlab Newton‘s method
- Newton's method in Matlab
- MATLAB实现构造Euler环游图的算法——数学建模
- 【转】MATLAB实现构造Euler环游图的算法——数学建模
- Matlab实现——Adaptive Quadrature Using Simpson’s Rule
- Matlab forward Euler
- Matlab forward Euler demo
- C++: 详解 使用Schrage's Method Revealed 实现随机化算法
- 各种语言版本实现欧拉猜想 Euler's sum of powers conjecture
- Machine Learning Logistic Regression and Newton's Method Andrew Ng 课程练习 Matlab Script 详细解析
- matlab secant method
- matlab Newton method
- Matlab The Bisection Method
- Matlab The Secant Method
- 最大化对数似然函数——牛顿方法(The Newton's method)
- Qt 创建托盘图标与菜单
- 与频谱有关的几个谱的概念
- 智力题——9.电线标号
- 在地图上画标注用到的资料
- 尾插法创建单链表
- Matlab实现——Euler's Method
- 智力题——10.分药
- Matlab实现——Recursive Trapezoidal Rule
- Matlab实现——Lagrange approximation
- visual studio 2010 directory configuration
- JDK使用InvocationHandler和Proxy实现动态代理
- Matlab实现——Clamped Cubic Spline
- ubuntu(Debian)中ISO相关控制命令
- PostgreSQL的数据存储(十一)---数据存储