calculusI

134 days ago by mrfarmerasf

solve(y^2 + 3*y + 2, y) 
       
Traceback (click to the left of this block for traceback)
...
NameError: name 'y' is not defined
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_5.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("c29sdmUoeV4yICsgMyp5ICsgMiwgeSk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpLnoFfF/___code___.py", line 3, in <module>
    exec compile(u'solve(y**_sage_const_2  + _sage_const_3 *y + _sage_const_2 , y)
  File "", line 1, in <module>
    
NameError: name 'y' is not defined
var('P v t') solve([P==v*t],t) 
       
[t == P/v]
[t == P/v]
solve([6-2*(x-3)==3+x],x) 
       
[x == 3]
[x == 3]
diff(sin(x)^2,x) 
       
2*sin(x)*cos(x)
2*sin(x)*cos(x)
integral(cos(x)^2,x) 
       
1/2*x + 1/4*sin(2*x)
1/2*x + 1/4*sin(2*x)
diff(1/2*x + 1/4*sin(2*x),x) 
       
1/2*cos(2*x) + 1/2
1/2*cos(2*x) + 1/2
def f(x): return (3-2*x^2)/(5*x^2+100*x) f(1000000) 
       
-1999999999997/5000100000000
-1999999999997/5000100000000
var('A P r t') solve ([A==P*e^(r*t)],P) 
       
[P == A*e^(-r*t)]
[P == A*e^(-r*t)]
solve([x-3<2],x) 
       
[[x < 5]]
[[x < 5]]