This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.function time_to_unwrap=P(mu_in)
% mu_in -- an array of values of mu = M/m
% time_to_unwrap -- a sequence of times in units of (R/g)^(1/2)
% for the chain to unwrap.
% Example P([1:10]) to run in a range of 1 to 10
global g R mu
g=1;%Since we are doing every thing in units of R/g^1/2
R=1;%We can take g=1 and R=1;
to_plot=0; %This in case we want to turn on extensive plotting
%Print a table of times to unwrap.
fprintf('mu = M/m | Time to unwrap (R/g)^(1/2) \n');
fprintf('%g | %g \n', mu_in(k),time_to_unwrap(k));