% Book: Laser Electronics by Verdeyen
% Problem: Chapter 5 problem 5
% Script Author: meg noah meg_noah@student.uml.edu
function Lasers_Ch5_Pr5
x = 0:0.0001:2.3993;
s=((x./2-2./x).*sinh(x)+2)/4
plot(x,s);
xlabel('n (where d=n*L)');
ylabel('Stability =(A+D+2)/4');
title('Stability=(sinh(n)*(n/2-2/n)+2)/4');