Abschnitt 3. Kapitel 2
single
Challenge: Curve Approximation
Swipe um das Menü anzuzeigen
Aufgabe
Wischen, um mit dem Codieren zu beginnen
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 3. Kapitel 2
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen