Académique Documents
Professionnel Documents
Culture Documents
Decay Rate, x2
3.5
3
2.5
2
1.5
1
0.5
0
1.5
2.5
3.5
Length, L
(1.1)
Our task is to determine how this root depends on the length of the bar. In particular, we will
reproduce the figure below.
We will accomplish this by composing 3 simple functions within a single m-file. The m-file
(called cooldrive.m) will look like
function cooldrive
% this is the driver
% set a, t and a range of L and b and find x
% and plot x2 against L
return
function x = cool(a,b,t,L)
% code bisection
return