function [Z Fu Fl] = ComplexAmplitude(A,w,Ku,Kl,b,m)

%This computes the complex motion amplitude for a mass suspended between
%two springs (with spring constants Ku and Kl, and excited by motion
%applied to the end not connected to the mass of the spring denoted by Ku. 
% Arguments:
%   b is the linear damping coefficient and must be a vector the same length
%   as the frequency vector.
% Values Returned:

Z = -A*Ku./(m*w.^2-(Ku+Kl)+i*w.*b);
Fu = Ku*(A-Z);
Fl = -Kl*Z;

end

