1st sage ws (derrivatives, antiderrivatives, etc.)

129 days ago by ransomd

solve(x^2 + 3*x + 2, x) 
       
[x == -2, x == -1]
[x == -2, x == -1]
solve(6-2*(x-3)==x+3, x) 
       
[x == 3]
[x == 3]
diff(x*csc(x^2), x) 
       
-2*x^2*csc(x^2)*cot(x^2) + csc(x^2)
-2*x^2*csc(x^2)*cot(x^2) + csc(x^2)
integral(cos(2*x), x) 
       
1/2*sin(2*x)
1/2*sin(2*x)
diff(1/2*sin(2*x), x) 
       
cos(2*x)
cos(2*x)
evaluate(f(x)==(3-2x^2)/(5x^2+100x), at x=1000000) 
       
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("ZXZhbHVhdGUoZih4KT09KDMtMnheMikvKDV4XjIrMTAweCksIGF0IHg9MTAwMDAwMCk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpxcqs2l/___code___.py", line 3
    evaluate(f(x)==(_sage_const_3 -2x**_sage_const_2 )/(5x**_sage_const_2 +100x), at x=_sage_const_1000000 )
                                    ^
SyntaxError: invalid syntax