Horner-Schema/Beispiele/Binär nach Dezimal
Aus KGS-Wiki
< Horner-Schema | Beispiele
\textrm{1} &= \color{blue}{1}\\ {\color{blue}{\textrm{1}}}{\color{orange}{\textrm{0}}} &= {\color{blue}{1}} \cdot 2 + {\color{orange}{0}} = {\color{green}{2}}\\ {\color{green}{\textrm{10}}}{\color{red}{\textrm{1}}} &= {\color{green}{2}} \cdot 2 + {\color{red}{1}} = {\color{purple}{5}}\\ {\color{purple}{\textrm{101}}}{\color{royalblue}{\textrm{0}}} &= {\color{purple}{\textrm{5}}} \cdot 2 + {\color{royalblue}{0}} = {\color{gray}{10}}\\ {\color{gray}{\textrm{1010}}}{\color{orchid}{\textrm{1}}} &= {\color{gray}{\textrm{10}}} \cdot 2 + {\color{orchid}{1}} = {\color{brown}{21}}\\ {\color{brown}{\textrm{10101}}}{\color{seagreen}{\textrm{0}}} &= {\color{brown}{\textrm{21}}} \cdot 2 + {\color{seagreen}{0}} = 42 \end{align}</math>