This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % Doing calculation and finding x x = F./k; % Input result from x and plug in to find energy stored in the spring E = .5.*k.*x.^2; % Determine which spring has most energy maxval = max(E); % Report results fprintf('Here is the result %g \n',maxval);...
View Full Document
This note was uploaded on 02/10/2011 for the course CPTR 125 taught by Professor Engineeringteacher during the Spring '11 term at Andrews University.
- Spring '11