CSH 5.2 Number Systems MrG 2013.0116

2975 days ago by CSH2012

5+2 
       
\newcommand{\Bold}[1]{\mathbf{#1}}7
\newcommand{\Bold}[1]{\mathbf{#1}}7
show(bin(5)) show(oct(2)) show(hex(7)) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{0b101}
\newcommand{\Bold}[1]{\mathbf{#1}}2
\newcommand{\Bold}[1]{\mathbf{#1}}7
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{0b101}
\newcommand{\Bold}[1]{\mathbf{#1}}2
\newcommand{\Bold}[1]{\mathbf{#1}}7
show(int('101',2)) show(int('010',2)) show(int('111',2)) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}5
\newcommand{\Bold}[1]{\mathbf{#1}}2
\newcommand{\Bold}[1]{\mathbf{#1}}7
\newcommand{\Bold}[1]{\mathbf{#1}}5
\newcommand{\Bold}[1]{\mathbf{#1}}2
\newcommand{\Bold}[1]{\mathbf{#1}}7
#1a)10x+y=2(x+y)=18 var('y') equ=10*x+y==2*(x+y);show(equ) equ=equ-10*x;show(equ) equ=equ-2*y;show(equ) equ=equ/(-1);show(equ) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}10 \, x + y = 2 \, x + 2 \, y
\newcommand{\Bold}[1]{\mathbf{#1}}y = -8 \, x + 2 \, y
\newcommand{\Bold}[1]{\mathbf{#1}}-y = -8 \, x
\newcommand{\Bold}[1]{\mathbf{#1}}y = 8 \, x
\newcommand{\Bold}[1]{\mathbf{#1}}10 \, x + y = 2 \, x + 2 \, y
\newcommand{\Bold}[1]{\mathbf{#1}}y = -8 \, x + 2 \, y
\newcommand{\Bold}[1]{\mathbf{#1}}-y = -8 \, x
\newcommand{\Bold}[1]{\mathbf{#1}}y = 8 \, x
#1b)10x+y=7(x+y)=63,84,42,21 solve(10*x+y==7*(x+y),y) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left[y = \frac{1}{2} \, x\right]
\newcommand{\Bold}[1]{\mathbf{#1}}\left[y = \frac{1}{2} \, x\right]
#2)123-6=117 var('a,b,c,d,e') show((10*a+b-(a+b))/9) show((100*a+10*b+c-(a+b+c))/9) show((1000*a+100*b+10*c+d-(a+b+c+d))/9) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}a
\newcommand{\Bold}[1]{\mathbf{#1}}11 \, a + b
\newcommand{\Bold}[1]{\mathbf{#1}}111 \, a + 11 \, b + c
\newcommand{\Bold}[1]{\mathbf{#1}}a
\newcommand{\Bold}[1]{\mathbf{#1}}11 \, a + b
\newcommand{\Bold}[1]{\mathbf{#1}}111 \, a + 11 \, b + c
#4) 15 dec = 120 ter 
       
#5) show(int('121',3)) show(int('2020',3)) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}16
\newcommand{\Bold}[1]{\mathbf{#1}}60
\newcommand{\Bold}[1]{\mathbf{#1}}16
\newcommand{\Bold}[1]{\mathbf{#1}}60
#8)243 base 5 = 465 base 7 int('243',5) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}73
\newcommand{\Bold}[1]{\mathbf{#1}}73
#9a)201 base 3 #9a)+12 base 3 #9a)220 base 3 
       
#9b)201 base 3 #9b)-12 base 3 #9b) 2 base 3