Functions
Contents
1Questions and Answers 2Invertible functions 3Numerical functions 4Functions with more arguments1Questions and Answers
Given two sets and , a function from to is a rule that selects for each element of exactly one element of . The mathematical notation says that is a function from to . The element that is selected for is called the value of the argument and is written as . Note that are variables here that are placeholders for concrete sets and concrete elements of these sets.
For example, if is the set of countries in the world and is the set of cities in the world, then we can consider the function that selects for each country its capital. The value of the argument Austria is Vienna,
We can also think of as questions in a quiz, and as answers. Then a function provides an answer for every question . Our example function above provides the answer to every question of the form What is the capital of country ?
In this example, there are elements of (for example, Zurich) that are not selected for any , so there may be answers that will never be given. That’s ok. The only thing we require is that for every question, there is an answer. We also allow that several questions have the same answer. As an example, consider the function corresponding to the question What is the first letter of country ’s name? This gives the same answer A for Austria, or Australia, or Albania, or....
Exercise 1.
A boolean function is a function . Such a function can be defined by a value table with just two rows, for example
Exercise 2.
Let and . How many different functions are there?
The mathematician creates another theorem out of this.
Theorem 3.
Let . Let be a set with elements and a set with elements. There are
