homework

113 days ago by andrearomano

solve(2*x + 6, x) 
       
[x == -3]
[x == -3]
Solve([-5*x>20],x) 
       
Traceback (click to the left of this block for traceback)
...
NameError: name 'Solve' is not defined
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("U29sdmUoWy01Kng+MjBdLHgp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmp5h096G/___code___.py", line 3, in <module>
    exec compile(u'Solve([-_sage_const_5 *x>_sage_const_20 ],x)
  File "", line 1, in <module>
    
NameError: name 'Solve' is not defined
solve([5+x<-3],x) 
       
[[x < -8]]
[[x < -8]]
solve([6-2*x-2*3==3+x],x) 
       
[x == -1]
[x == -1]
def f(x): return 3-2*x^2 f(100) 
       
-19997
-19997
var ('M x') solve([M==2+x],x) 
       
[x == M - 2]
[x == M - 2]