2022 Review 1
-
Multiply all of the coordinates by 5.
m5: (Listof Posn) -> (Listof Posn)
-
Draw a bunch of radius 15 circles on a 400x300 empty scene.
draw-circles: (Listof Posn) (Listof Color) -> Image
-
Sum the absolute value of the difference of the x and y coordinates of the posns in the list.
sumdif: (Listof Posn) -> Number
-
Remove all of the zeros from a list.
packer: (Listof Number) -> (Listof Number)
-
(Beware, harder.) Move all of the numbers <= 5 to the end of the list.
mover: (Listof Number) -> (Listof Number)
-
Change the sign of every even number to its opposite.
eneg: (Listof Number) -> (Listof Number)
-
Compute this mathematical sum.
zeta: Number -> Number
$$ \frac{1}{1^w} + \frac{1}{2^w} + \frac{1}{3^w} + \cdots + \frac{1}{1000^w} $$