Second Sage Assigment

111 days ago by luserranot

factor(10989) 
       
3^3 * 11 * 37
3^3 * 11 * 37
factor(12177) 
       
3^3 * 11 * 41
3^3 * 11 * 41
10989/12177 
       
37/41
37/41
def g(x): return |x-3|+3 g(-1) 
       
Traceback (click to the left of this block for traceback)
...
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_15.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZGVmIGcoeCk6CiAgICByZXR1cm4gfHgtM3wrMwpnKC0xKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpxEzpc_/___code___.py", line 4
    return |x-_sage_const_3 |+_sage_const_3 
           ^
SyntaxError: invalid syntax
solve ([|x-3|+3>=5],x) 
       
Traceback (click to the left of this block for traceback)
...
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_18.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("c29sdmUgKFt8eC0zfCszPj09NV0seCk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmppgB2Oq/___code___.py", line 3
    solve ([|x-_sage_const_3 |+_sage_const_3 >==_sage_const_5 ],x)
            ^
SyntaxError: invalid syntax
I CANT DO THIS 
       
Traceback (click to the left of this block for traceback)
...
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_19.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("SSBDQU5UIERPIFRISVM="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpVmf6uL/___code___.py", line 2
    I CANT DO THIS
         ^
SyntaxError: invalid syntax