Sectie 3. Hoofdstuk 2
single
Challenge: Curve Approximation
Veeg om het menu te tonen
Taak
Veeg om te beginnen met coderen
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 2
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.