CSH 3.2 MrG 2012.1005 Variables

2976 days ago by CSH2012

#1) r=5 a=pi*r**2 show(a) show(a.n(digits=20)) show(pi.n(digits=20)) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}25 \, \pi
\newcommand{\Bold}[1]{\mathbf{#1}}78.539816339744830962
\newcommand{\Bold}[1]{\mathbf{#1}}3.1415926535897932385
\newcommand{\Bold}[1]{\mathbf{#1}}25 \, \pi
\newcommand{\Bold}[1]{\mathbf{#1}}78.539816339744830962
\newcommand{\Bold}[1]{\mathbf{#1}}3.1415926535897932385
#2) x=5 x=2*x show(x) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}10
\newcommand{\Bold}[1]{\mathbf{#1}}10
#3) name, d7, first_name, lastName, Amt 
       
#4) firstName="Alvar" lastName="Garcia" myName=firstName+" "+lastName myName 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{Alvar Garcia}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{Alvar Garcia}
#5) a=3 b=2 a=a+b b=a-b show(a) show(b) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}5
\newcommand{\Bold}[1]{\mathbf{#1}}3
\newcommand{\Bold}[1]{\mathbf{#1}}5
\newcommand{\Bold}[1]{\mathbf{#1}}3
#6) age=5 show(age) #show(len(age)) age='five' show(age) show(len(age)) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}5
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{five}
\newcommand{\Bold}[1]{\mathbf{#1}}4
\newcommand{\Bold}[1]{\mathbf{#1}}5
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{five}
\newcommand{\Bold}[1]{\mathbf{#1}}4
#7) def pow4(x): x=x*x x=x*x return x pow4(5) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}625
\newcommand{\Bold}[1]{\mathbf{#1}}625
#8) n=5 s='+'*n show(s) show('len = ' + str(len(s))) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{+++++}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{len = 5}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{+++++}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{len = 5}