Domain and range

Level FundamentalDifficulty ★★★★★Concept⌖ Open in the map

What is it?

Where a function is defined and which values it actually takes. Getting them wrong is the mathematical version of a runtime error: −1\sqrt{-1} or log⁡0\log 0 have no real value.

Formulas

dom⁡x=[0,∞),dom⁡ln⁡x=(0,∞),σ(ℝ)=(0,1)\operatorname{dom}\sqrt{x} = [0,\infty), \quad \operatorname{dom}\ln x = (0,\infty), \quad \sigma(\R) = (0,1)

Where it shows up in computing

  • Floating point (IEEE 754)★★★★★frequentScientific computing and algorithms

    Outside the domain IEEE 754 returns NaN (sqrt(-1)) or ±∞ (log(0)) instead of failing.

Where it shows up in AI

  • Activation functions★★★★★frequentAI and machine learning

    The range of the sigmoid, (0,1)(0,1), is why its output can be read as a probability.

Where is it used?

Computing topics reachable from here, through the chain of ideas that leads to them:

What depends on it

This page has the essentials. A fuller treatment (intuition, formal definition, worked example) is on the way.

↑ ↓ to navigate · ↵ · Esc