% matlab script to demonstrate mesh selection for stiff problem

clear all, close all

global lambda

t0 = 0;
tf = 1;

y0 = 0;
lambda = -100;

[t23,y23]   = ode23('lambdaSin',[t0,tf],y0);
figure(1)
plot(t23,y23,'o-')

[t15s,y15s] = ode15s('lambdaSin',[t0,tf],y0);
figure(2)
plot(t15s,y15s,'o-')
