Differential Assignment 2
Differential Assignment 2
plt.figure(figsize=(10, 6))
# Differentiate implicitly
dy_dx = diff(parabola_eq, y) / -diff(parabola_eq, x)
def plot_parabolas_and_trajectories():
p_values = [1, 2, 3] # Different distances from vertex to focus
plt.figure(figsize=(10, 6))
for p in p_values:
x = np.linspace(-5, 5, 400)
y = (4 * p * x)**0.5
y_neg = -(4 * p * x)**0.5
IMPLEMETATION DIAGRAM:1
DIAGRAM: 2