2022 Review 1

  1. Multiply all of the coordinates by 5.

     m5: (Listof Posn) -> (Listof Posn)
    
  2. Draw a bunch of radius 15 circles on a 400x300 empty scene.

     draw-circles: (Listof Posn) (Listof Color) -> Image
    
  3. Sum the absolute value of the difference of the x and y coordinates of the posns in the list.

     sumdif: (Listof Posn) -> Number
    
  4. Remove all of the zeros from a list.

     packer: (Listof Number) -> (Listof Number)
    
  5. (Beware, harder.) Move all of the numbers <= 5 to the end of the list.

     mover: (Listof Number) -> (Listof Number)
    
  6. Change the sign of every even number to its opposite.

     eneg: (Listof Number) -> (Listof Number)
    
  7. Compute this mathematical sum.

     zeta: Number -> Number
    

    $$ \frac{1}{1^w} + \frac{1}{2^w} + \frac{1}{3^w} + \cdots + \frac{1}{1000^w} $$

Last modified August 18, 2023: 2022-2023 End State (7352e87)