4ef2f6ca7e75b7f613cc31859b59102723a5c3eb
[ipdf/sam.git] / chapters / Background / FixedPoint.tex
1 A positive real number $z$ may be written as the sum of smaller integers ``digits'' $d_i$ multiplied by powers of a base $\beta$. 
2 \begin{align}
3         z &= d_0 \beta^0 + d_1 \beta^1 + d_2 \beta^2 + \text{ ...} = \displaystyle\sum_{i=-\infty}^{\infty} d_i \beta^{i}\label{fixedpointZ}
4 \end{align}
5 Where each digit $d_i < \beta$. A set of $\beta$ unique symbols are used to represent values of $d_i$.
6 A seperate sign '-' can be used to represent negative reals using equation \eqref{fixedpointZ}.
7
8 To express a real number using equation \eqref{fixedpointZ} in practice we are limited to a finite number of terms between $i = -m$ and $i = n$. Fixed point representations are capable of representing a discrete set of numbers $0 \leq |z| \leq \beta^{n+1}-\beta^{-m}$ seperated by $\Delta z = \beta^{-m} \leq 1$. In the case $m = 0$, only integers can be represented.
9
10 Example integer representation in base 10 (decimal) and base 2 (binary):
11 \begin{align*}
12         5682_{10} &= 5\times10^3 + 6\times10^2 + 8\times10^1 + 2\times10^0 \\
13         1011000110010_2 &= 1\times2^{12} + 0\times2^{11} + \text{ ...} + 0\times2^0
14 \end{align*}
15
16 %{\bf FIXME} Add Maths reference (Cantor's Diagonal argument) without going into all the Pure maths details
17
18
19
20 %, but could be represented by the combination of a numerator $7 = 111_2$ and denominator $3 = 11_2$. Lastly, some values such as $e \approx 2.718\text{...}$ can only be expressed exactly using a symbolical system --- in this case as the result of an infinite summation $e = \displaystyle\sum_n^{\infty} 1/n!$
21

UCC git Repository :: git.ucc.asn.au