{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab B solutions

Lab B solutions - PROBLEM 3-B.1 clc clear a = 1 LINE 1 b =...

This preview shows pages 1–3. Sign up to view the full content.

% --------------------------------------------------------- % PROBLEM 3-B.1 clc, clear a = 1 % LINE 1 b = 3 % LINE 2 c = 2 % LINE 3 xVertex = -b/(2*a) % LINE 4 yVertex = a*xVertex^2 + b*xVertex + c % LINE 5 % substituted expression: yVertex = (-b^2/(4*a)) + c % bring LINE 2 back from History window, change b = 4, % execute % EXECUTE LINE 4 from Hist Win % EXECUTE LINE 5 from Hist Win % repeat for other settings of a, b, or c % --------------------------------------------------------- % PROBLEM 3-B.2 clc, clear G = 6.672 * 10^-11 % N m^2 kg^-2 % Part A m1 = 5.97 * 10^24 % kg, earth m2 = 7.36 * 10^22 % kg, moon dist = 3.84403 * 10^8 % m, earth-moon F_partA = -G * m1 * m2 / dist^2 % N, earth-moon % Part B m1 = 5.97 * 10^24 % kg, earth m2 = 1.99 * 10^30 % kg, sun dist = 1.495979 * 10^11 % m, earth-sun F_partB = -G * m1 * m2 / dist^2 % N, earth-sun % Part C m1 = 5.97 * 10^24 % kg, earth m2 = 74 % tons, A320 m2 = m2 * 907.1847 % kg, A320 dist = 6380 % km, earth-A320 ground dist = dist * 10^3 % m, earth-A320 ground F_partC = -G * m1 * m2 / dist^2 % N, earth-A320 ground % Part D m1 = 5.97 * 10^24 % kg, earth m2 = 74 * 907.1847 % kg, A320 dist1 = 6380 % km, earth-ground dist1 = dist1 * 10^3 % m, earth-ground dist2 = 4*10^4 % ft, ground-A320 flight dist2 = dist2 * 0.3048 % m, ground-A320 flight dist = dist1 + dist2 % m, earth-A320 flight F_partD = -G * m1 * m2 / dist^2 % N, earth-A320 ground

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
% Part E m1 = 5.97 * 10^24 % kg, earth m2 = 74 * 907.1847 % kg, A320 dist1 = 6380
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

Lab B solutions - PROBLEM 3-B.1 clc clear a = 1 LINE 1 b =...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online