CSH 2.3 MrG 2012.0927 Python Interpreter

2971 days ago by CSH2012

#1) Python has no redundancy 
       
#2) show(2+-2) show(2++2) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}0
\newcommand{\Bold}[1]{\mathbf{#1}}4
\newcommand{\Bold}[1]{\mathbf{#1}}0
\newcommand{\Bold}[1]{\mathbf{#1}}4
#3) 2+(+(+2)) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}4
\newcommand{\Bold}[1]{\mathbf{#1}}4
#4) show(2**3) show(2**4) show(2^4) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}8
\newcommand{\Bold}[1]{\mathbf{#1}}16
\newcommand{\Bold}[1]{\mathbf{#1}}16
\newcommand{\Bold}[1]{\mathbf{#1}}8
\newcommand{\Bold}[1]{\mathbf{#1}}16
\newcommand{\Bold}[1]{\mathbf{#1}}16
#5) show("abc"+"def") show('abc'+'def') "abc"+"def" 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
#6) 3*'12' 
       
\newcommand{\Bold}[1]{\mathbf{#1}}121212
\newcommand{\Bold}[1]{\mathbf{#1}}121212
#7) show(9-8*2+6) show((5-1)*(1+2)**3) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}-1
\newcommand{\Bold}[1]{\mathbf{#1}}108
\newcommand{\Bold}[1]{\mathbf{#1}}-1
\newcommand{\Bold}[1]{\mathbf{#1}}108
#8) expand((x-2)**3+(3*x)) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}x^{3} - 6 \, x^{2} + 15 \, x - 8
\newcommand{\Bold}[1]{\mathbf{#1}}x^{3} - 6 \, x^{2} + 15 \, x - 8
expand((x-2)**3+3*x) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}x^{3} - 6 \, x^{2} + 15 \, x - 8
\newcommand{\Bold}[1]{\mathbf{#1}}x^{3} - 6 \, x^{2} + 15 \, x - 8
expand(x-2**3+3*x) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}4 \, x - 8
\newcommand{\Bold}[1]{\mathbf{#1}}4 \, x - 8
#9) def reciprocal(x): return 1/x 1+reciprocal(2*5) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\frac{11}{10}
\newcommand{\Bold}[1]{\mathbf{#1}}\frac{11}{10}
#10) (), exp, (*, /, //, %), (+, -)