Mathematical Functions

  • Functions in math are often written like f(x) = x2
  • Functions have parameters and "return" a value
  • Functions in programming come from this idea but extend it
  • Functions in programming don't need to deal only with numbers
  • They have a few other important differences

2 / 23