MATH 314 Quiz 06

Given on 2026-09-03

  1. Write a function with one argument size that fills a numpy array of size size with powers of 2. Numpy arrays index just like lists. Use a for loop.

  2. Write a function with one argument size that fills a numpy array of size size with powers of 2. No for loops.