liveBook · Manning

Domain

A domain is a set of values, such as values allowed for a variable or accepted as inputs to a function.

How 2 Manning books explain it

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.

Read how Geometry for Programmers explains domain →

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.

Read how Classic Computer Science Problems in Swift: Essential techniques for practicing programmers explains domain →

Related concepts

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.