Farmer Math

127 days ago by AndreaN

solve(2*x+6,x) 
       
[x == -3]
[x == -3]
solve(6-2*x-3==3+x,x) 
       
[x == 0]
[x == 0]
solve([-5*x>20],x) 
       
[[x < -4]]
[[x < -4]]
solve([5+x<-3],x) 
       
[[x < -8]]
[[x < -8]]
def f(x) return 3-2*x^2at=100 f(3) 
       
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_12.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZGVmIGYoeCkKcmV0dXJuIDMtMip4XjJhdD0xMDAKZigzKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmp7LAt0c/___code___.py", line 3
    def f(x)
           ^
SyntaxError: invalid syntax
var('Ax') solve([A=2+x],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_15.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("dmFyKCdBeCcpCnNvbHZlKFtBPTIreF0seCk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmp9lGRtl/___code___.py", line 4
    solve([A=_sage_const_2 +x],x)
            ^
SyntaxError: invalid syntax