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

single

Challenge: Curve Approximation

Svep för att visa menyn

Uppgift

Svep för att börja koda

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

some-alt