Abschnitt 3. Kapitel 4
single
Challenge: Ellipse Approximation
Swipe um das Menü anzuzeigen
Aufgabe
Wischen, um mit dem Codieren zu beginnen
Approximate an ellipse using a set of points and visualize the result using matplotlib.
- The function
approximate_ellipsemust return a list of(x, y)tuples representing points on an ellipse with semi-major axisa, semi-minor axisb, andnum_pointspoints evenly spaced by angle. - The function
plot_ellipsemust plot the provided list of points as a closed polygon using matplotlib.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 3. Kapitel 4
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen