% Three Bungee Jumpers - WorkshopEx01.m % % This program reflects what would be typed in % when solving the bungee jumper problem using % MATLAB as a calculator clear clc % Set up the parameters of the Bungee Jumper problem echo on % The weights for Alex, Barry, and Carol (in pounds) wA = 225; wB = 160; wC = 105; % The lengths of the bungee cords L1 = 15; L2 = 15; L3 = 15; % The bungee cord spring constants c1 = 75; c2 = 30; c3 = 30; % Set up and solve the static equilibrium problem % based on the three linear equations. % First, calculate the elongations of each chord. e1 = (wA + wB + wC)/c1 e2 = (wB + wC) /c2 e3 = wC / c3 % Second, calculate the positions zA = L1 + e1 zB = zA + L2 + e2 zC = zB + L3 + e3 echo off