Session 7: Integration & Polish – Building the Artifact

Discuss

Pull it together—math as a system. Prep capstone structure (like Jonathan's: question/data/code/results).

Code

# Combine previous codes into a full script
# Example: User input for angle, output trajectory plot
import numpy as np
import matplotlib.pyplot as plt

angle = float(input('Enter angle (deg): '))
rad = np.deg2rad(angle)
t = np.linspace(0, 10, 100)
x = 100 * np.cos(rad) * t
y = 100 * np.sin(rad) * t - 0.5 * 9.81 * t**2
plt.plot(x, y)
plt.title('Full Trajectory')
plt.xlabel('Distance (m)')
plt.ylabel('Height (m)')
plt.grid(True)
plt.show()

Combine into a full script: User inputs (e.g., angle, speed), outputs plots/insights. Add comments for clarity.

Excite

"This is your 'digital twin' of a flight—test decisions without crashing."

Homework

Refine and document (e.g., write a short tech note on assumptions).