Matlab illustrate stiffness
% matlab script to illustrate stiffness
% using simple flame propagation model
close all
clear all
% define the right-hand side of the ODE
F = inline('y^2 - y^3','t','y');
delta = 0.01; % not stiff
tic
ode23(F,[0 2/delta],delta);
toc
disp('Press any key to continue.')
pause
% try again, this time with stiffness ...
delta = 0.0001;
tic
ode23(F,[0 2/delta],delta);
toc
disp('Press any key to continue.')
pause
% now use a stiff solver to solve the problem
tic
ode23s(F,[0 2/delta],delta);
toc
想要看到更多学习笔记、考试复习资料、面试准备资料?
想要看到IBM工作时期的技术积累和国外初创公司的经验总结?
敬请关注:
[CSDN](https://blog.csdn.net/u013152895)
[简书](https://www.jianshu.com/u/594a3de3852d)
[博客园](https://www.cnblogs.com/vigorz/)
[51Testing](http://www.51testing.com/?15263728)

浙公网安备 33010602011771号