Avsnitt 3. Kapitel 4
single
Challenge: Ellipse Approximation
Svep för att visa menyn
Uppgift
Svep för att börja koda
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ösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 4
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal