01-first.hs 169 B

1234567891011
  1. -- First Haskell program
  2. -- George C. Privon
  3. -- 2023-09-04
  4. -- Define a constant
  5. e :: Double
  6. e = exp 1
  7. -- Define a function
  8. square :: Double -> Double
  9. square x = x ^ 2