Relations and Functions
In the video I was supposed to include the uses for functions. I did record that part, but messed up that part of the video, and considering how long it took to edit I decided to just include it here for now:
Uses for functions
Functions are incredibly useful and you will have been using them already. A function can be thought of as an instruction on what to do with an input value. For example adding 2 to a number is a type of function. We know that we can input any value for x, add 2 to it, and then get the output.
Computer programming would not be possible without functions. This website was created using functions. For example there is a function at the top of this page that will look in the database to see if there is a video in the database. So the input is does a video, yes or no. If yes, then the function will output the video to the top of the screen, if no, then the function will output a blank area instead.
Questions
- The monthly average water temperature of the Gulf of Mexico in Key West, Florida varies during the year. In January, the average water temperature is 69F, in February: 70F, in March: 75F, and in April: 78F. Show how you could represent this data in the four different ways.
- What are the domain and range of this relation: {( -3, 14), ( 0, 7), ( 2, 0), ( 9, -18), ( 23, -99)}?