2022-08-25

Learn the start of Chapter 2 through experience.
  1. List of all numbers 5 through 50.
  2. List of all multiples of 13 from 0 to 260.
  3. Perfect squares from $1^2$ to $15^2$.
  4. Use the function $f(x) = (x-4)^2+5$. Plug in integers from $x=-10$ to $x=10$ and get the output values $y=f(x)$ in a list.
  5. Modify question 4 so that it only has values with $y<50$.
  6. Make a list of all integers from 1 to 100 whose squares are beween 500 and 5000.

Miscellany

Haskell loves integers. Most of the time we will work with integers. When you have the choice of taking the square root of x or squaring y, pick the squaring. You don’t want to deal with the complexity of decimals in Haskell when it is not required.

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