Sectie 3. Hoofdstuk 4
single
Challenge: Ellipse Approximation
Veeg om het menu te tonen
Taak
Veeg om te beginnen met coderen
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 4
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.