CM 2.3 python MrG 2011.1007

3707 days ago by calcpage123

#2) 2+-2 
       
\newcommand{\Bold}[1]{\mathbf{#1}}0
\newcommand{\Bold}[1]{\mathbf{#1}}0
+2++2 
       
\newcommand{\Bold}[1]{\mathbf{#1}}4
\newcommand{\Bold}[1]{\mathbf{#1}}4
2+---2 
       
\newcommand{\Bold}[1]{\mathbf{#1}}0
\newcommand{\Bold}[1]{\mathbf{#1}}0
#3) 2+++2 
       
\newcommand{\Bold}[1]{\mathbf{#1}}4
\newcommand{\Bold}[1]{\mathbf{#1}}4
#4) 2**3 
       
\newcommand{\Bold}[1]{\mathbf{#1}}8
\newcommand{\Bold}[1]{\mathbf{#1}}8
2**4 
       
\newcommand{\Bold}[1]{\mathbf{#1}}16
\newcommand{\Bold}[1]{\mathbf{#1}}16
#5) "abc"+"def" 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
'abc'+'def' 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
\newcommand{\Bold}[1]{\mathbf{#1}}\hbox{abcdef}
"abc"+"def' 
       
Traceback (click to the left of this block for traceback)
...
SyntaxError: EOL while scanning string literal
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_12.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("ImFiYyIrImRlZic="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpIvZv34/___code___.py", line 2
    "abc"+"def'
              ^
SyntaxError: EOL while scanning string literal
#6) show(3*'12') show(3*12) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}121212
\newcommand{\Bold}[1]{\mathbf{#1}}36
\newcommand{\Bold}[1]{\mathbf{#1}}121212
\newcommand{\Bold}[1]{\mathbf{#1}}36
#7) 9-8*2+6 
       
\newcommand{\Bold}[1]{\mathbf{#1}}-1
\newcommand{\Bold}[1]{\mathbf{#1}}-1
(5-1)*(1+2)**3 
       
\newcommand{\Bold}[1]{\mathbf{#1}}108
\newcommand{\Bold}[1]{\mathbf{#1}}108
plot((x-2)**3+(3*x)) 
       
plot(x-2**3+3*x)