Domain
A domain is a set of values, such as values allowed for a variable or accepted as inputs to a function.
Geometry for Programmers
The domain of a function is the set of input values for which the function is defined.
- How it is used
- Classifies geometric functions by the spaces from which they accept inputs and to which they send outputs.
- How deep it goes
- Defines domains through sine and develops whole-space, vector-field, and parametric-surface uses without formal relation theory.
- Examples
- Uses sine over ℝ, translation of a square, vector and scalar fields, and surfaces parameterized by (u, v).
- What you can do after
- Evaluate/understand which inputs a geometric rule covers and distinguish whole-space transformations from parameterized surfaces.
Classic Computer Science Problems in Swift: Essential techniques for practicing programmers
In a constraint-satisfaction problem, a domain is the set of possible values that may be assigned to a variable.
- How it is used
- Models the possible assignments available to each variable while constraints determine which combinations remain valid.
- How deep it goes
- Defines domains and stores them in Swift dictionaries, then uses them during recursive value-by-value backtracking.
- Examples
- Uses meeting hours, map colors, and word-search grid locations as domain values.
- What you can do after
- Build a CSP by assigning each variable an explicit collection of candidate values for backtracking search.
Related concepts
- constraint-satisfaction problempart of · A constraint-satisfaction problem is a problem defined by variables, domains of possible values, and constraints, with the goal of finding an assignment that satisfies the constraints.
- functionpart of · A function is a callable program unit that performs an operation, may accept inputs, and can produce a result or side effect.
- mathematical functionconfigures · A mathematical function is a mapping that assigns exactly one output to each permitted input in its domain.
- domaincontrasts with · A domain is a subject area or problem context with relevant concepts, rules, activities, and terminology that software represents or supports.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

