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

single

Challenge: Curve Approximation

Stryg for at vise menuen

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt