Chapter 3Elementary Discrete Mathslides.en.pdf:157-158
Functions: partial, total
Right-unique relations
Def 3.1 — Partial functionDef 3.2 — DomainDef 3.2 — Codomain
Concept
A function is a special kind of relation: where every
is paired with AT MOST one (right-unique).
- Partial function: defined on a subset of .
- Total function: defined on ALL of (for every , exactly one ).
- Domain : the set of inputs where is defined.
- Codomain : the set (the "type" of the output).
- Range / image : the actual outputs produced.
In SML: the expression fn x => x + 1 is a function. The expression 1 / 0 is undefined (partial).
Practice — score 100% to advance
Multiple choice
Q1
What is a partial function?
Q2
What's the difference between codomain and range?
Q3
Is (on ) total or partial?
Q4
A function is a relation that is…
Q5
For , , the range is…
Loading…