Sektion 3. Kapitel 2
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_verticesevenly spaced x-values over the specifiedinterval. - 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
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat