Untitled

548 days ago by aaaa

n=var('n') a_n=((e**n)/(n^2)) a_n.limit(n=oo) 
       
+Infinity
+Infinity
 
       
x=var('x') diff(x**x,x) 
       
(log(x) + 1)*x^x
(log(x) + 1)*x^x
var('x,y') implicit_plot((x-2)^2/4+(y+1)^2/9-1,(x,0,4)(y,-4,2)) show(aspect_ratio=1) 
       
Traceback (click to the left of this block for traceback)
...
TypeError: 'tuple' object is not callable
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_3.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("dmFyKCd4LHknKQppbXBsaWNpdF9wbG90KCh4LTIpXjIvNCsoeSsxKV4yLzktMSwoeCwwLDQpKHksLTQsMikpCnNob3coYXNwZWN0X3JhdGlvPTEp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpR9hTYE/___code___.py", line 4, in <module>
    implicit_plot((x-_sage_const_2 )**_sage_const_2 /_sage_const_4 +(y+_sage_const_1 )**_sage_const_2 /_sage_const_9 -_sage_const_1 ,(x,_sage_const_0 ,_sage_const_4 )(y,-_sage_const_4 ,_sage_const_2 ))
TypeError: 'tuple' object is not callable
D=matrix(CC,3,[1,2,3,4,5,7,8,3,6]) det(D) 
       
-11.0000000000000
-11.0000000000000
D=matrix(CC,3,[1,2,3,4,5,7,8,3,6]) rank(D) 
       
3
3
def PersonalIncomeTax(x) if x<2500 return money=0 if x>2500,x<4000 return money=(x-2000)*10%-25 if x>4000,x<7000 return money=(x-2000)*15%-125 if x>7000,x<22000 return money=(x-2000)*20%-375 if x>22000,x<42000 return money=(x-2000)*25%-1375 if x>42000,x<62000 return money=(x-2000)*30%-3375 if x>62000,x<82000 return money=(x-2000)*35%-6375 if x>82000,x<102000 return money=(x-2000)*40%-10375 if x>102000 return money=(x-2000)*45%-15375 
       
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_2.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZGVmIG15ZnVuY3Rpb24oeCkKd2hpbGUgeDwyNTAwIAogICBtb25leT0wCndoaWxlIHg+MjUwMCx4PDQwMDAKICAgbW9uZXk9KHgtMjAwMCkqMTAl"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmplF52g7/___code___.py", line 3
    def myfunction(x)
                    ^
SyntaxError: invalid syntax