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

single

Challenge: Curve Approximation

Swipe to show menu

Task

Swipe to start coding

Practice using polygons to approximate a curve given by a function. In this task, you will use your understanding of polygons and plotting to create a polygonal approximation of a curve.

  • The function must compute num_vertices evenly spaced x-values over the specified interval.
  • For each x-value, the function must compute the corresponding y-value using curve_func.
  • The function must return a list of (x, y) tuples representing the vertices of the polygonal approximation.

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 2
single

single

Ask AI

expand

Ask AI

ChatGPT

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

some-alt