7.1 Functions Defined on General Sets

Definitions

Theorem 7.1.1 A Test for Function Equality

Example Functions

In Class Exercises

Exercise 1

Let X = {1, 3, 5} and Y = {s, t, u, v}. Define f: X → Y by the following set of ordered pairs {(1, v), (3, s), (5, v)}.

Exercise 6a

Define a function on the set of nonnegative integers that can be used to define this sequence: 1, -1/3, 1/5, -1/7, 1/9, ...

Exercise 11b

Define F: Z × Z → Z × Z as follows: For every ordered pair (a,b) of integers, F(a,b) = (2a+1, 3b-2). Find F(2,1).

Exercise 29a

Find the Hamming Distance H(10101, 00011)

Exercise 30a

Draw an arrow diagram for the following boolean function: F(0,0) = 1, F(0,1) = 0, F(1,0) = 1, F(1,1) = 0

Exercise 33

Show that g: Q → Z defined by the rule g(m/n) = m - n for all integers m and n with n ≠ 0 is not a function.