Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Ellipse Approximation | Approximating Complex Figures
Geometric Modelling with Python
Section 3. Chapter 4
single

single

Challenge: Ellipse Approximation

Swipe to show menu

Task

Swipe to start coding

Approximate an ellipse using a set of points and visualize the result using matplotlib.

  • The function approximate_ellipse must return a list of (x, y) tuples representing points on an ellipse with semi-major axis a, semi-minor axis b, and num_points points evenly spaced by angle.
  • The function plot_ellipse must plot the provided list of points as a closed polygon using matplotlib.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt