BITS Pilani: Discrete Structures For Computer Science - Functions
BITS Pilani: Discrete Structures For Computer Science - Functions
- Functions
Dr.N.L.Bhanu Murthy
BITS Pilani
Hyderabad Campus
Functions
Functions of n arguments
f A B
f y
a
b
x
A
B Bipartite Graph Plot
Like Venn diagrams
Remarks.
The range of a function might not be its whole codomain.
The codomain is the set that the function is declared to
map all domain values into.
The range is the particular set of values in the codomain
that the function actually maps elements of the domain
to.
A g B f C
.a . g(a) . f(g(a))
Not one-to-one Not even a
One-to-one function!
Ex. Let f: .
f(x) = x3 is onto,
f(x) =x2 is not onto. (Why?)
Onto Not Onto Both 1-1 1-1 but
(but not 1-1) (or 1-1) and onto not onto